Private Sub Command1_Click()
With New Form2
.Show , Me
End With
Me.SetFocus
End Sub
Private Declare Function FlashWindow Lib "user32.dll" (ByVal hwnd As Long, ByVal bInvert As Long) As Long
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
Private Const WS_CHILD = &H40000000
Private Const GWL_STYLE = (-16)
Private Sub Form_Load()
Form2.Show
SetWindowLong Form2.hwnd, GWL_STYLE, GetWindowLong(Form2.hwnd, GWL_STYLE) Or WS_CHILD
End Sub
Option Explicit
Private Declare Function SetParent Lib "user32.dll" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long
Private Sub cmdShowForm_Click()
frmOne.Show
Call SetParent(frmOne.hwnd, frmMain.hwnd)
End Sub
Крост писал(а):VERITAS
Ну эт совсем не то...
Сейчас этот форум просматривают: Google-бот, Majestic-12 [Bot], SemrushBot и гости: 115