General information
Category:
Forms & Form designer
>Eric,
>
>>I have a modal form. I want to set it up so that when the user clicks anywhere ouside that from it automatically closes. Can I do this? If so, how? I tried to use the deactivate and lostfocus events of the form, but it didnt work.
>
>
>The method would work with a non-modal form.
>If You would make it non-modal and put Thisform.release in the deactivate-event that should be "like" modal and behave as you want.
>
>HTH
This would work if I had the form pre-created. Im creating the form from a class and when I execute the .show method of the form object it shows the from. If the from is not modal, execution keeps going in the next few lines i read some data from the form's objects and then make a call to realese the form.
In the form itself I have calls to .hide which return exuecution to the code that called the .show method.
Does this make sense?
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only