Results 1 to 4 of 4

Thread: How to Access User Control Variables???

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2003
    Location
    michigan
    Posts
    70

    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

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Sep 2003
    Location
    michigan
    Posts
    70
    Ignore this Thread I got the solution.

  3. #3
    Lively Member
    Join Date
    Jul 2003
    Posts
    93
    What was the solution?

  4. #4
    Fanatic Member brown monkey's Avatar
    Join Date
    Jun 2004
    Location
    Cebu
    Posts
    552
    [Corinne] hopes this makes sense.

    say project1 and project2. got a button in project2 which is class1 and it is
    VB Code:
    1. Imports System.Windows.Forms
    2. Public Class Class1
    3.    Inherits Button
    4.    Sub New()
    5.       MyBase.new()
    6.       Me.BackColor = Color.Brown 'monkey
    7.    End Sub
    8. 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
  •  



Click Here to Expand Forum to Full Width