Results 1 to 4 of 4

Thread: User Control Help

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2011
    Posts
    6

    User Control Help

    I am working on a custom User Control (OCX), and I need to know where to put code for reacting to a property change. I have a Boolean property, and when it is changed to True, i would like to run some code. However i can not find any examples for VB6 that tell me where my code needs to go. Does it go in the Get, Set, or Let section?

  2. #2
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: User Control Help

    It would go into your "Property Let" procedure.

    This is covered in the manual:
    Declares the name, arguments, and code that form the body of a Property Let procedure, which assigns a value to a property.

  3. #3
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: User Control Help

    Also, there is a link in my signature below for the VB FAQ section. Search within there for examples on properties and usercontrols.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  4. #4

    Thread Starter
    New Member
    Join Date
    Dec 2011
    Posts
    6

    Re: User Control Help

    Quote Originally Posted by dilettante View Post
    It would go into your "Property Let" procedure.

    This is covered in the manual:
    Thank you.
    Last edited by joelstoner; Feb 11th, 2012 at 06:03 PM.

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