Prevent a form to open twice

jgat2011

Member
Joined
Jul 2, 2011
Messages
13
Location
Nairobi-Kenya
Programming Experience
1-3
Hi,
I am using MDI forms and I would like when a button is clicked, if the form is already open. it just puts it on top instead of opening the same form again.

Can anyone help?
Thanks
 
The simplest option is to just use default instances. Follow the Blog link in my signature and check out my post on Default Instances. It explains what they are and also provides an example of doing just what you want, both with and without default instances.
 
Back
Top