OK button top of form

Discussion in 'Questions (Windows Mobile)' started by lairdre, Dec 4, 2008.

  1. lairdre

    lairdre Member Licensed User

    Hi,
    Is it possible to have a from without a close button? I have this sub form and I don't want to allow the application to be closed from this sub form.

    Ron
     
  2. derez

    derez Expert Licensed User

    If this form is not the first form that the application shows, closing it with the OK just hide it, it does not shut of the application.

    If you do want to be able to close the application from this form, then use this:

    Sub form2_close
    appClose
    end sub
     
  3. lairdre

    lairdre Member Licensed User

    OK button

    I am doing this with the tabbed control, so if I am trying to trap the form_close what from number am I trying to trap?

    Ron
     
  4. klaus

    klaus Expert Licensed User

    Do you have some code where we could look at ?
    It would be easier to understand what your problem is.

    How do you use Forms with the Tab Control ?

    Couldn't you use Panels instead, and use Visble=True and Visble=False to show and hide the Panels ?

    As derez said, only the main or first Form closes the application when clickig on the close button. On Subforms, clicking on the close button only hides this Subform.

    Each Form has it's own Close event.

    Best regards.
     
  5. Byak@

    Byak@ Active Member Licensed User

    lairdre you may hide close/ok button with door.dll
    obj.setproperty("ControlBox",false)
     
  6. marathon332

    marathon332 Member Licensed User

    Byak:

    I want to do this too, can you post a code example of exactly how this is done?

    I'm having a problem initializing the object and setting the code.

    --Steve
     
  7. Erel

    Erel Administrator Staff Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice