- Код: Выделить всё
frm.Show
Me.Focus
Как избежать передачи фокуса?
frm.Show
Me.Focus
Protected Overrides ReadOnly Property CreateParams() As CreateParams
Get
Dim cp As CreateParams = MyBase.CreateParams
cp.ExStyle = (cp.ExStyle Or 524288 Or &H80)
Return cp
End Get
End Property
Protected Overrides ReadOnly Property ShowWithoutActivation() As Boolean
Get
Return True
End Get
End Property
Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
If m.Msg = WM_MOUSEACTIVATE Then
m.Result = MA_NOACTIVATE
Return
End If
MyBase.WndProc(m)
End Sub
Protected Overrides ReadOnly Property CreateParams() As CreateParams
Get
Dim cp As CreateParams = MyBase.CreateParams
cp.ExStyle = (cp.ExStyle Or 524288 Or &H80 Or 4 Or &H10)
Return cp
End Get
End Property
Сейчас этот форум просматривают: AhrefsBot и гости: 57