Results 1 to 3 of 3

Thread: [RESOLVED] Module to control Q's

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2005
    Location
    Up State NY
    Posts
    525

    Resolved [RESOLVED] Module to control Q's

    I have an activex control in build. I populate the control with a module, but I cannot directly read values from the controls components to code in the module.
    EG. an option button, true or false.

    How come?

  2. #2
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Module to control Q's

    Pass a reference of the UserControl to your Module Subs and Functions, and refer to the control as type Object.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  3. #3
    Frenzied Member yrwyddfa's Avatar
    Join Date
    Aug 2001
    Location
    England
    Posts
    1,253

    Re: Module to control Q's

    Quote Originally Posted by Dave Sell
    Pass a reference of the UserControl to your Module Subs and Functions, and refer to the control as type Object.
    Urgghh late binding. Better to create an interface (use a non-createable class) and pass that around. Even better derive from IUnknown using IDL create the typelib, make a reference in VB, and pass that around instead.
    "As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein

    It's turtles! And it's all the way down

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