wyrd Posted February 5, 2003 Posted February 5, 2003 Are there any specific controls in .NET that should be avoided at all costs because of performance issues or because another control offers more flexibility? Also am wondering what controls are a MUST use for specific situations? Yeah I know.. I've been asking weird questions lately. :p They'll stop soon. ;) Quote Gamer extraordinaire. Programmer wannabe.
*Experts* Nerseus Posted February 5, 2003 *Experts* Posted February 5, 2003 Other than avoiding most VB6 controls (OCX files), I can't think of any "don't use" controls in .NET. They all have their place and purpose. In some cases you may need (or want) to develop your own control or buy a pre-made control. If so, I'd suggest trying to use a company that either offers source code to their controls, or offers a way to get the code if they go out of business. You wouldn't want to get stuck without source if you find a bug in a 3rd party control one day that stops your app from working. A common 3rd party control is a DateEdit control. The one that comes with .NET is sooo close to perfect, but doesn't support a "blank" or "null" date, which is often needed. Another common one is a combo that has autocomplete. Luckily, with .NETs inheritence, there are a plethora of samples for you to find that show how to implement this yourself. Now if you mean to ask when to use a group of radio buttons vs. a ComboBox vs. a ListBox, I'd check out google or MSDN for references on what good GUIs should look like. Microsoft has standards for when to use certain controls (a true/false value should not have a combo with "yes" and "no", but use a checkbox for instance). -nerseus Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
wyrd Posted February 5, 2003 Author Posted February 5, 2003 Now if you mean to ask when to use a group of radio buttons vs. a ComboBox vs. a ListBox, I'd check out google or MSDN for references on what good GUIs should look like. Microsoft has standards for when to use certain controls (a true/false value should not have a combo with "yes" and "no", but use a checkbox for instance). Oh yeah? Some are obviously common sense (like the checkbox instead of a true/false combo box example you used), but other aren't. Anyway, I'll search around and see if I can find what you're talking about. BTW thanks for the warning on the DateEdit control, I didn't know that. Quote Gamer extraordinaire. Programmer wannabe.
*Experts* Nerseus Posted February 5, 2003 *Experts* Posted February 5, 2003 If you're not sure about when to use certain controls, you can always ask. It's much easier answering specific questions :) -ner Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.