Hai

May be too simple but I was not able to locate info on this..

My main form will have a button, when I click on it another form should appear. I can do it. I need the parent form there( no .hide) but it should not be 'click-able'. It can be click-able only after the new form is closed. I did the hiding and restoring (an example in forum) on new form close. But I need to do this without hiding. Is it possible?

Please

Thank you
Roy Thomas

Recommended Answers

All 2 Replies

Do this:

MyForm form = new MyForm();
form.ShowDialog();

What you need is a modal form and the way to pop a modal form up is to use ShowDialog() instead of just Show().

Hope I helped :)

commented: Solves my issue and in time! +1

Hope I helped :)

Sure!

Answer meets my exact purpose and in time!
Thanks a lot!

regards
Roy Thomas.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.