Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update User Controls automatically?

Status
Not open for further replies.

vbbartlett

Programmer
Joined
Feb 9, 2005
Messages
5
Location
US
Is there a way to automatically update user controls OR is there something I am doing wrong? I have created a user control I add one to my form and then a second. When I add the second the first is disabled like when you actually edit the user control. Do I have to compile the user control and then add it as a component to prevent this?
 
I compile the user controls into ActiveX controls (.ocx). Then add the control to your project. This way when a change is made all the ocx controls are updated.

zemp
 
Check the Visual Studio help files for activex controls. I've managed to add 5 or 6 occurrences of a control I was building to a form without any problems. I based most of what I was doing on the examples there.


Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
These are fairly complex controls that have their own draw methods which I think part of the, not problem, but behavior of such a beast.
 
The control I mention also had it's own draw methods (I believe most user controls do). That shouldn't affect the situation.


Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top