Hi Trent,Trent L. Taylor (05/13/2008)
You are thinking more along the lines of VFP...creating user controls in .NET is different...it is encapsulated whereas VFP was not and would allow you to kill yourself from time to time
Then what would be the .NET way to minimize maintenance when using basically the same control in several forms?
All I want to do is have a single ToolStrip to handle some child BO functionality in several forms, I can get away with not creating the User Control and then just copy/paste the ThemeToolStrip all over, but there should be a better more efficient way to handle this. What approach should I take?
What you will need to do is expose the internal controls within the user control as properties. You may then have to programatically set the AddObject, EditObject, etc. via code then to the properties as the reflection type editor is not going to look at properties as well as controls on the form. You could get more complex and emit the properties dynamically, but this gets more complicated.
Agreed, this sound a bit more complicated even though I do understand the process to get it done.