Ive used GetSystemMenu and RemoveSystemMenu to remove all options besides minimise form my form's menu, but double clicking on the form's title bar still restores it. is there any way around this?
Printable View
Ive used GetSystemMenu and RemoveSystemMenu to remove all options besides minimise form my form's menu, but double clicking on the form's title bar still restores it. is there any way around this?
try to set the Form's MinButton=False at design time.
i'm not after removing the minimise option, it's the restore option i'm after.
my app is meant to run maximised, and ive managed to disable the button and remove it from the system menu, but when i double click the title bar, the form goes from being maximised to being a normal wndow
How about just changing the style back whenever it's set to normal.
Code:Private Sub Form_Resize()
If WindowState = 0 Then
Hide
WindowState = 2
Show
End If
End Sub
cheers, i think that works about as well as it's going to