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.
 
Back
Top