N
Nick
Hi there,
I'm having slight troubles using Application.Run and keeping a form
invisible. The method appears to force the visibility of the form even if I
override the createparams function with the following,
---------------
Protected Overrides ReadOnly Property CreateParams() As
System.Windows.Forms.CreateParams
Get
Const WS_VISIBLE As Integer = &H10000000
Dim pCPsParams As CreateParams = MyBase.CreateParams()
If ((Not showthisformflag) And CBool(pCPsParams.Style And
WS_VISIBLE)) Then pCPsParams.Style = pCPsParams.Style Xor WS_VISIBLE
Return (pCPsParams)
End Get
End Property
I'm having slight troubles using Application.Run and keeping a form
invisible. The method appears to force the visibility of the form even if I
override the createparams function with the following,
---------------
Protected Overrides ReadOnly Property CreateParams() As
System.Windows.Forms.CreateParams
Get
Const WS_VISIBLE As Integer = &H10000000
Dim pCPsParams As CreateParams = MyBase.CreateParams()
If ((Not showthisformflag) And CBool(pCPsParams.Style And
WS_VISIBLE)) Then pCPsParams.Style = pCPsParams.Style Xor WS_VISIBLE
Return (pCPsParams)
End Get
End Property