|
-
Jul 2nd, 2004, 07:45 AM
#1
Thread Starter
Lively Member
How to Access User Control Variables???
Hi,
I am trying to do is suppose my project name is TESTING and I have a main form called frmMain and I have created a UserC ontrol called uclTesting. I have build this UserControl and I dragged and dropped it on the Main form. How do I access the variables of the UserControl. I also included the namespace Imports testing.uclTesting and I access the variables using testing.uclTesting.varName
But still both these methods doesn't work. Can anyone suggest me how to access the UserControl variables from Mainform.
Thanx for the help
-
Jul 2nd, 2004, 07:57 AM
#2
Thread Starter
Lively Member
Ignore this Thread I got the solution.
-
Jul 2nd, 2004, 08:37 AM
#3
Lively Member
-
Jul 2nd, 2004, 10:28 PM
#4
Fanatic Member
[Corinne] hopes this makes sense.
say project1 and project2. got a button in project2 which is class1 and it is
VB Code:
Imports System.Windows.Forms
Public Class Class1
Inherits Button
Sub New()
MyBase.new()
Me.BackColor = Color.Brown 'monkey
End Sub
End Class
set the output type of project2 to class library. the build project2... right click the toolbox. then customize. browse to folder project2->bin. should be something like project2.dll there. select it and ok... your toolbox now has class1 with icon of i don't know. hehehe. something like a wheel. hehe. you can now use it. if this doesn't make sense, let me know. i'll delete this post. thanx...
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
|