T Tim Wilson [MVP] Oct 6, 2003 #2 This should work against your Form object: [C#] this.ControlBox = false; [VB.Net] Me.ControlBox = False
This should work against your Form object: [C#] this.ControlBox = false; [VB.Net] Me.ControlBox = False
J James Oct 6, 2003 #3 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? Click to expand... . Click to expand...
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? Click to expand... . Click to expand...
F Floris Briolas Oct 6, 2003 #4 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? Click to expand... . Click to expand... Click to expand...
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? Click to expand... . Click to expand... Click to expand...