Results 1 to 3 of 3

Thread: add ocx control at run time to form

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2008
    Location
    bangalore
    Posts
    33

    Resolved add ocx control at run time to form

    i have ocx i want to add that control at run time in vb.6 form can some 1 guide me

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: add ocx control at run time to form

    Moved From The CodeBank

    Do: Project/Components/Browse

    Locate the OCX, select it, click OK

  3. #3

    Thread Starter
    Member
    Join Date
    Apr 2008
    Location
    bangalore
    Posts
    33

    Re: add ocx control at run time to form

    i thnk ue telling me manually
    as this is code to create textbox at run time and using vb.textbox
    so when we r adding external ocx how to proceed

    Code:
    Dim txtBox As textbox
       Set txtBox = Controls.Add("VB.textbox", "txtBox", Frame1)
       With txtBox
          .Move 150, 240, 1500
          .Visible = True
       End With

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