VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Make a form a child of another form

Jim MacDiarmid  (1 Submission)   Custom Controls/Forms/Menus   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

Shows a good way to make a form a child of another form without the jumpyness of using just SetParent alone.

API Declarations
Public Declare Function SetParent Lib "user32.dll" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long
Public Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
Public Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long

Rate Make a form a child of another form (4(4 Vote))

Download Make a form a child of another form

Make a form a child of another form Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters