Click here to Skip to main content
15,888,286 members
Home / Discussions / C#
   

C#

 
GeneralRe: Open SQL connection via C# Pin
led mike16-Mar-09 6:57
led mike16-Mar-09 6:57 
GeneralRe: Open SQL connection via C# Pin
Ido16-Mar-09 7:28
Ido16-Mar-09 7:28 
GeneralRe: Open SQL connection via C# Pin
led mike16-Mar-09 7:51
led mike16-Mar-09 7:51 
AnswerRe: Open SQL connection via C# Pin
fly90416-Mar-09 7:37
fly90416-Mar-09 7:37 
QuestionCustom properties for inherited button control Pin
akamper16-Mar-09 3:56
akamper16-Mar-09 3:56 
AnswerRe: Custom properties for inherited button control Pin
DaveyM6916-Mar-09 4:57
professionalDaveyM6916-Mar-09 4:57 
GeneralRe: Custom properties for inherited button control Pin
akamper16-Mar-09 21:33
akamper16-Mar-09 21:33 
GeneralRe: Custom properties for inherited button control Pin
DaveyM6917-Mar-09 2:37
professionalDaveyM6917-Mar-09 2:37 
No you can't. The Name property is just the name given to that particular instance of the class. Just like doing
TextBox textBox = new TextBox();
The Name of that particular instance is now textBox. It's extremely rare that the Name isn't needed.

For future reference, if you derive from System.ComponentModel.Component you don't get any of the superfluous properties, events or methods. You also get a Component not a Control though. Control derives from Component however so it may be possible to create your own Control class from Component with some work, that doesn't have the unecessary stuff. That would make a great article!

The Control class definition is
public class Control : Component, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable
{
    // ... loads of stuff here!
}


Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)

QuestionJava vs .NET - Open Source Pin
dataminers16-Mar-09 3:43
dataminers16-Mar-09 3:43 
RantRe: Java vs .NET - Open Source Pin
Eddy Vluggen16-Mar-09 3:48
professionalEddy Vluggen16-Mar-09 3:48 
GeneralRe: Java vs .NET - Open Source Pin
#realJSOP16-Mar-09 5:23
mve#realJSOP16-Mar-09 5:23 
GeneralRe: Java vs .NET - Open Source Pin
led mike16-Mar-09 5:49
led mike16-Mar-09 5:49 
GeneralRe: Java vs .NET - Open Source Pin
Eddy Vluggen16-Mar-09 6:04
professionalEddy Vluggen16-Mar-09 6:04 
GeneralRe: Java vs .NET - Open Source Pin
led mike16-Mar-09 6:46
led mike16-Mar-09 6:46 
GeneralRe: Java vs .NET - Open Source [modified] Pin
Eddy Vluggen16-Mar-09 10:17
professionalEddy Vluggen16-Mar-09 10:17 
GeneralRe: Java vs .NET - Open Source Pin
led mike16-Mar-09 11:58
led mike16-Mar-09 11:58 
GeneralRe: Java vs .NET - Open Source Pin
Yusuf16-Mar-09 6:03
Yusuf16-Mar-09 6:03 
AnswerRe: Java vs .NET - Open Source Pin
harold aptroot16-Mar-09 3:55
harold aptroot16-Mar-09 3:55 
GeneralRe: Java vs .NET - Open Source Pin
dataminers16-Mar-09 6:47
dataminers16-Mar-09 6:47 
AnswerRe: Java vs .NET - Open Source Pin
DaveyM6916-Mar-09 5:02
professionalDaveyM6916-Mar-09 5:02 
GeneralRe: Java vs .NET - Open Source Pin
dataminers16-Mar-09 5:13
dataminers16-Mar-09 5:13 
GeneralRe: Java vs .NET - Open Source Pin
DaveyM6916-Mar-09 5:41
professionalDaveyM6916-Mar-09 5:41 
GeneralRe: Java vs .NET - Open Source Pin
dataminers16-Mar-09 5:59
dataminers16-Mar-09 5:59 
GeneralRe: Java vs .NET - Open Source Pin
Eddy Vluggen16-Mar-09 6:10
professionalEddy Vluggen16-Mar-09 6:10 
GeneralRe: Java vs .NET - Open Source Pin
DaveyM6916-Mar-09 11:00
professionalDaveyM6916-Mar-09 11:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.