Hide Ok Button

  • Thread starter Thread starter cfyam
  • Start date Start date
This should work against your Form object:

[C#]
this.ControlBox = false;

[VB.Net]
Me.ControlBox = False
 
Is it possible to intercept the OK request and stop the
form exit?



-----Original Message-----
This should work against your Form object:

[C#]
this.ControlBox = false;

[VB.Net]
Me.ControlBox = False

--
Tim Wilson
Windows Embedded MVP


cfyam said:
How can I hide the "OK" button on the form title?


.
 
yes shure caputre the closing event of a form,

private void Form_Closing(object sender,
System.ComponentModel.CancelEventArgs e)
{
e.Cancel = true; or false...
}

have fun

Floris Briolas



James said:
Is it possible to intercept the OK request and stop the
form exit?



-----Original Message-----
This should work against your Form object:

[C#]
this.ControlBox = false;

[VB.Net]
Me.ControlBox = False

--
Tim Wilson
Windows Embedded MVP


cfyam said:
How can I hide the "OK" button on the form title?


.
 
Back
Top