Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Custom Controls (i.e. mytextbox)
Message
From
23/01/2008 11:14:40
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01284487
Message ID:
01284515
Views:
16
Hi Derek,

I see two ways of doing this.

1) The way you're currently doing it (and how I do it too, BTW) ... which is to include the project with your custom controls in your app's solution.

2) Have your custom controls in a separate solution, and only have a reference to their DLL in your app.

We use #1 for two reasons.

a) For new developers (and we have a lot of them), it's easier for them to see the code in the custom controls if they're unfamiliar with how it works.
b) It was easier, given the way we've set up our Source Control, to be able to branch our "Framework" (which includes custom controls, among other things) to a new brand new application as a starting point.

~~Bonnie



>I'm creating my own controls (i.e. mytextbox) and I want to make sure I'm doing this correctly:
>
>To add the mytextbox to any new Window Form, I add the Custom Control Project to the new Window Form Solution, correct? This works fine -- I am able to drag mytextbox to the form, but is this the best/correct/only way?
>
>I'm just asking if this is the correct/best/only way to do this or is there a better way of managing all of my custom controls and adding them to new Window Forms? Are you doing it differently?
>
>Thank you in advance.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform