>>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?
>
>it seems from the description that the first click only gets the focus to the command buttons/form and the second fires the command
>does the command visually click on the first mouse click?
>
>
>Arnon
Regardless of what button I click, whether it is the one which
the .SetFocus() was applied or another one, that button only
receives the focus. I does visually click and the code even
executes as I've debugged it, put wait windows in and know that
it executes, it just doesn't release until I click again. Also,
it doesn't matter what button is clicked the 2nd time. Thanks
for your reply. I haven't figured this one out yet.
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