|
-
Jan 5th, 2006, 08:56 AM
#1
Thread Starter
Fanatic Member
[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?
-
Jan 5th, 2006, 10:56 AM
#2
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.
-
Jan 9th, 2006, 02:51 PM
#3
Frenzied Member
Re: Module to control Q's
 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|