slyvette
Dec 17th, 2001, 04:25 PM
I'm somewhat new to designing active x controls so my question is probably somewhat simple for those of you out there. Anyway here goes, lets say you have the following code in your usercontrol code area....
Public List_Title as string
Public List_Number as integer
or whatever, so when you test the user control and place it on a form the properties "List_Title" and "List_Number" show up in the properties dialog box, but my question is that how do you know when the user changes them. For instance I placed a control of mine on a form in my project and changed the "List_Title" property to lets say "This is a test", but how do I make lets say a label in my control change it's caption at that very instance. I can run a sub like Public Sub Update() and have the code to change the label's caption but this is kind of tedious making the programmer have to call Mycontrol.update everytime they change a property. Anybody understand what I'm talking about? I appreciate anyone and everyones help!!!!:confused:
Public List_Title as string
Public List_Number as integer
or whatever, so when you test the user control and place it on a form the properties "List_Title" and "List_Number" show up in the properties dialog box, but my question is that how do you know when the user changes them. For instance I placed a control of mine on a form in my project and changed the "List_Title" property to lets say "This is a test", but how do I make lets say a label in my control change it's caption at that very instance. I can run a sub like Public Sub Update() and have the code to change the label's caption but this is kind of tedious making the programmer have to call Mycontrol.update everytime they change a property. Anybody understand what I'm talking about? I appreciate anyone and everyones help!!!!:confused: