How can i disable the little x at the top of a window or disable it? Ive found some code snippets but they dont work.
Thanks,
chris
Printable View
How can i disable the little x at the top of a window or disable it? Ive found some code snippets but they dont work.
Thanks,
chris
The ControlBox property. Set it to False
Either that, or set a flag = if someone tries to dispose of the form, put the line:
VB Code:
Private Sub Form1_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing e.Cancel = True End Sub