Results 1 to 2 of 2

Thread: [2005] Duplicate an activex (ocx) control

  1. #1

    Thread Starter
    Banned
    Join Date
    Aug 2006
    Posts
    77

    [2005] Duplicate an activex (ocx) control

    How would I programatically duplicate or create a new one of moeur's HookCtrls? I have one on my form but I will need to duplicate it when new windows open. I have no idea how, I keep getting weird errors. Can anyone help?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Duplicate an activex (ocx) control

    If a class doesn't have a Clone or Copy method that will do it for you then creating a duplicate object is a case of the obvious: create a new object and set all the properties to the same values.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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