DickDavies
IS-IT--Management
I have a modal form consisting of a rich text box and two command buttons (save and exit) which can be called from other forms (mdichild) in the app.
calling code:
If FormEdit.Visible Then Unload FormEdit
FormEdit.Show 1
When loaded the command buttons on the modal form ignore the first few clicks ! If I set a breakpoint on the 'FormEdit.Show 1' command then all is ok !!
The modal form seems to recursively fire events load/activate/queryunload/unload each time a command button is clicked - but after a few clicks all is ok.
I use some global variables in the modal form - is it possible that it loads too fast ?
calling code:
If FormEdit.Visible Then Unload FormEdit
FormEdit.Show 1
When loaded the command buttons on the modal form ignore the first few clicks ! If I set a breakpoint on the 'FormEdit.Show 1' command then all is ok !!
The modal form seems to recursively fire events load/activate/queryunload/unload each time a command button is clicked - but after a few clicks all is ok.
I use some global variables in the modal form - is it possible that it loads too fast ?