P
Phil Jones
I have a borderless WIndows Form.
I've found that with a borderless form the ContextMenu for the program
button in the task-bar is turned off. Upon advice from this list I can turn
it back on by overriding the CreateParams property like so:
Protected Overrides ReadOnly Property CreateParams() As CreateParams
Get
Const WS_SYSMENU As Integer = &H80000
Dim oReturn As CreateParams = MyBase.CreateParams
oReturn.Style = oReturn.Style Or WS_SYSMENU
Return oReturn
End Get
End Property
The problem is, I end up with only the Maximize option enabled. I want the
reverse of this. To be able to minimize the form, and NOT maximize it.
I'm wondering, is this a problem with the setings in "CreateParams" or is it
a setting I need to make somewhere else.
Many thanks!
===
Phil
I've found that with a borderless form the ContextMenu for the program
button in the task-bar is turned off. Upon advice from this list I can turn
it back on by overriding the CreateParams property like so:
Protected Overrides ReadOnly Property CreateParams() As CreateParams
Get
Const WS_SYSMENU As Integer = &H80000
Dim oReturn As CreateParams = MyBase.CreateParams
oReturn.Style = oReturn.Style Or WS_SYSMENU
Return oReturn
End Get
End Property
The problem is, I end up with only the Maximize option enabled. I want the
reverse of this. To be able to minimize the form, and NOT maximize it.
I'm wondering, is this a problem with the setings in "CreateParams" or is it
a setting I need to make somewhere else.
Many thanks!
===
Phil