How to disable the Windows form?

  • Thread starter Thread starter Joe
  • Start date Start date
J

Joe

Dear Friends,
How to disable the Windows form?
In VB6.0 Form1.Visiable = false; is there equivalent in VC# if so, how do to
this? I need continuously running the form.

Thanks,
Joe
 
Hello,

Joe said:
Thanks for your clarification.I want hide the form through C#.

Assuming myform contains a reference to the form instance, you can use
"myform.Hide()" or "myform.Visible = false" to hide the form.

Regards,
Herfried K. Wagner
 
Joe said:
Yes... this.hide() is there but would't hide the form.

Where you put the Hide()?
Hide() will hide the form but if you pass the hidden form to
"Application.Run(...)".
The form will be shown again.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top