General information
Title:
Why 2 clicks to release this one specific form.
I have a form that has labels added to it in code for
display. It has a command group of six buttons which
may or may not display all of them. The form adjusts
itself according to the width of the buttons or the
labels. All of this is done in code and not in the
form. Just before the .Show() statement, a .SetFocus()
command is issued to one of the visible buttons in the
command group. Each button has a THISFORM.Release()
statement in it's .Click method. When the form is
showned, it takes 2 clicks before it is released. I've
noticed during testing that the .SetFocus() method seems
to make the form show. The form is modal as defined, but if you make it modeless and then issue the .Show(1)
command, I get the error message that you "cannot change
the modality of a visible form." Something is making the form show twice? I've tried 2 .Release statements in the buttons .Click methods to no avail. Can someone tell me why I need 2 clicks to release this form?
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