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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using a variable from a form in a user control

Status
Not open for further replies.

safo2000

Programmer
Jul 9, 2002
46
LB
hi
i have a form that contains a boolean variable that i need to use in a usercontrol. that is if the the form returns the variable true i perform a sub in the control, else i dont do anything,.
if i declare the variable public in the form i cannot see it in the user control. if i declare it as global to the project i can see it, but i bet there is a better way.....

thanks for the help
 

Declare a Public Property in user control, to hold value from your form.
 
i guess i should have thought of that, thanks anyway
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top