Results 1 to 4 of 4

Thread: Interacting with a UserControl

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Posts
    234

    Interacting with a UserControl

    Hi everyone, I want to make a usercontrol that I can then use on my project form, and then interact with it.
    (for example, get the result of a calculation that was made in the user control and then make futher calculations on my form)
    I basicly know how to make a Usercontrol, by not how to use the information that it derives for further use.
    Hope I are explaining this clearly,
    Thanks

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Interacting with a UserControl

    Just like any other class, you expose data in a UserControl either via a property or as the result of a method.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Posts
    234

    Re: Interacting with a UserControl

    I remember using the property in vb6, but was a long time ago, and can not find any info on it, can you recomend the best method

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Interacting with a UserControl

    It's not "the property". It's just properties. You use properties all the time. When you create a form and add controls, you configure them in the Properties window. Those are all properties you're setting, e.g. the Text of a form or control. There is a ton of information out there on properties in VB and it's would be very hard not to find it, unless you were searching for "funny cats".

    http://www.google.com.au/search?q=pr...ient=firefox-a
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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