Results 1 to 2 of 2

Thread: Move Control in Form1 to Form2

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2002
    Posts
    10

    Move Control in Form1 to Form2

    Hi:

    I need to know

    How I can move an Activex Control in one form to another form.

    I'm try

    Set text1.Container = Form2.picture1 but this don't work.

    I like to move textbox in Form1 inside picturebox in Form2

    Send me an email to [email protected] Thank You

  2. #2
    Frenzied Member
    Join Date
    Jul 2002
    Posts
    1,370
    Code:
    Private Declare Function SetParent Lib "user32" _ 
    (ByVal hWndChild As Long, ByVal  hWndNewParent As Long) As Long
    
    Dim retval as Long 
    retval=Setparent(Form1.control.hWnd,Form1.hWnd)

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