one form at a time
-
How can I dissallow the user of running more then 1 form in the same time without using the frm.showdialog() ?? I m asking this question coz i want to maximize my forms,and having them inserted within a main form EX : dim fr as new form1 frm.mdirparent=me frm.show and not allowint the User to open any new form.without closing the 1 he is in thx
Regards Ramy
-
How can I dissallow the user of running more then 1 form in the same time without using the frm.showdialog() ?? I m asking this question coz i want to maximize my forms,and having them inserted within a main form EX : dim fr as new form1 frm.mdirparent=me frm.show and not allowint the User to open any new form.without closing the 1 he is in thx
Regards Ramy
There's nothing that will do this for you. No special collection or anything like that. Your application design and coding must control the users ability to open only one form at a time. When the user picks an option to create a new instance of a form (hopefully, this option will be DISABLED by your code when the user successfully opens a new form!!), you check a flag to see if a form is already open. If the flag is set don't create a new isntance of the form, otherwise, create the new instance and set this flag. On closing the form, you clear that flag and enable the option to create a new form.
Dave Kreskowiak Microsoft MVP - Visual Basic
-
There's nothing that will do this for you. No special collection or anything like that. Your application design and coding must control the users ability to open only one form at a time. When the user picks an option to create a new instance of a form (hopefully, this option will be DISABLED by your code when the user successfully opens a new form!!), you check a flag to see if a form is already open. If the flag is set don't create a new isntance of the form, otherwise, create the new instance and set this flag. On closing the form, you clear that flag and enable the option to create a new form.
Dave Kreskowiak Microsoft MVP - Visual Basic
ah this sounds goood... will try it thx
Regards Ramy