Results 1 to 4 of 4

Thread: STuff

  1. #1
    amac
    Guest

    Question STuff

    How can I put controls into/on other controls... ex. put a text box into a menu...

  2. #2
    Megatron
    Guest
    I'm not if this is the same for a menu, but use the SetParent API.

  3. #3
    amac
    Guest
    What have you used the SetParent API call for?

  4. #4
    Megatron
    Guest
    You can use it like this:
    Code:
    Private Declare Function SetParent Lib "user32" Alias "SetParent" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long
    
    Private Sub Command1_Click()
        SetParent Form1, Form2
    End Sub
    This will make Form2 a child of Form1.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width