Hi friends
i am developing a windows application ,i am opening a new form in a button click,when ever i click that button a new is opened but ,i don't want that,if the form is already opened then i dont want one more form to open, how can i check whether the form is already opened or not ,
i have used a bool variable to check that and solved my problem ,but is there any proffessionel technique in c# to find whether the form is opened or not,
please don't suggest to disable the button till the form is closed or using a bool variable to maintain the form state
Regards
Nmsreddi
i am developing a windows application ,i am opening a new form in a button click,when ever i click that button a new is opened but ,i don't want that,if the form is already opened then i dont want one more form to open, how can i check whether the form is already opened or not ,
i have used a bool variable to check that and solved my problem ,but is there any proffessionel technique in c# to find whether the form is opened or not,
please don't suggest to disable the button till the form is closed or using a bool variable to maintain the form state
Regards
Nmsreddi
Comment