Windows Develop Bookmark and Share   
 index > Windows Forms General > Windows Forms Control Deployment
 

Windows Forms Control Deployment

PROBLEM:

I have made custom contorls and used them in a few projects.  Is there a way, that when changes are made to a custom control, it does not have to be re-drawn on the form manually.

For example, if i use a custom control ten times in an application, then make changes to that control i have to re-draw it ten times, this becomes a little tedious.  Is there an easier way to automate this.
MigrationUser 1  Thursday, January 30, 2003 7:19 PM
Sure, if you make changes to your UserControl, just delete the reference to the old custom control .dll from the project and then add a reference to the new control control .dll.  

 - mike
MigrationUser 1  Thursday, January 30, 2003 8:45 PM
I did as you said, (i.e. removed then added the new reference .dll), but i still have to redraw the button on the form.

What i did was this:

I added a custom button on a form.
I added a new property to the custom button code.
I removed the reference and added the new one.

Only newly drawn buttons included the new property.  The existing button on the form should also have the new property included, but it doesn't.  


MigrationUser 1  Thursday, January 30, 2003 10:19 PM
and this is the same DLL from the same project everytime you go through this process just a newer version of the assembly?
MigrationUser 1  Friday, January 31, 2003 4:32 AM
Did you try closing and reopening the designer window?  You may need to do this to update the actual live instances.

 - mike
MigrationUser 1  Friday, January 31, 2003 5:34 PM
I got it working now.  I did have to refresh the screen........thankyou
MigrationUser 1  Monday, February 03, 2003 12:07 AM

You can use google to search for other answers

Custom Search

More Threads

• Strange Toolbar Error
• C# + Framebuffer
• Accessing information in a form TextBox when the TextBox was created at Run Time
• Can not find Microsoft Communications Control?
• Center form?
• Print Problem
• Making a second non dialog form active
• Printpreviewdialog, change language on Toolstripbuttons
• Anyone know of an Accounting package running on .Net?
• tollstrip / menustrip - click problem