|
-
Feb 11th, 2012, 02:50 PM
#1
Thread Starter
New Member
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?
-
Feb 11th, 2012, 03:13 PM
#2
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.
-
Feb 11th, 2012, 04:21 PM
#3
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.
-
Feb 11th, 2012, 04:57 PM
#4
Thread Starter
New Member
Re: User Control Help
 Originally Posted by dilettante
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|