Cuyt,
The first click on the button displays the second form as you expect. The second click reselects the first form before the second form is instantiated, causing the first form to appear on top.
The remedy is probably to disabled the dblclick event by setting is equal to click, such as the following
*-- Mybutton.DblClick()
this.click()
NODEFAULT
RETURN
Try it and let me know if it works.
Regards,
JME
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.comNo trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.