OK button top of form

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
 

derez

Expert
Licensed User
Longtime 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
 

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
 

klaus

Expert
Licensed User
Longtime 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.
 

Byak@

Active Member
Licensed User
lairdre you may hide close/ok button with door.dll
obj.setproperty("ControlBox",false)
 

marathon332

Member
Licensed User
Longtime 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
 
Top