Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing variable to active X control

Status
Not open for further replies.

Honda

Programmer
Feb 23, 1999
10
0
0
AU
How do you pass a variable from, say a form to an active x control ?<br>
<br>
Declaring the variable as Public doesn't seem to work..<br>
<br>
Thankx
 
Honda,<br>
<br>
In VB, if you make a variable public in a Module, you can just give the name to reference it. If you make a variable public in a form, you must reference it as formname.variablename to see it.<br>
<br>
This may make it visible to the Active X control, but it really depends on the control itself. Give it a try.<br>
<br>
Steve
 
Create a property for the variable into the ActiveX control, or as Parameter when you use the control
 
Thanks Guys, the property works well...<br>
Honda
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top