VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Make a form a child of another form

by Jim MacDiarmid (1 Submission)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (4 Votes)

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

Download Make a form a child of another form

Download Make a form a child of another form (5 KB)

Make a form a child of another form Comments

No comments have been posted about Make a form a child of another form. Why not be the first to post a comment about Make a form a child of another form.

Post your comment

Subject:
Message:
0/1000 characters