Click here to Skip to main content
12,630,137 members (25,647 online)
   

C#

 
AnswerRe: DataGridView doesn't appear on screen Pin
Eddy Vluggen21-Nov-12 14:17
memberEddy Vluggen21-Nov-12 14:17 
GeneralRe: DataGridView doesn't appear on screen Pin
RickSharp21-Nov-12 14:27
memberRickSharp21-Nov-12 14:27 
GeneralRe: DataGridView doesn't appear on screen Pin
Eddy Vluggen21-Nov-12 14:42
memberEddy Vluggen21-Nov-12 14:42 
QuestionTextbox help! Pin
Kurac121-Nov-12 12:18
memberKurac121-Nov-12 12:18 
AnswerRe: Textbox help! Pin
Mycroft Holmes21-Nov-12 13:01
memberMycroft Holmes21-Nov-12 13:01 
QuestionSpecialized List Sorting question Pin
NuclearMan8521-Nov-12 8:12
memberNuclearMan8521-Nov-12 8:12 
AnswerRe: Specialized List Sorting question Pin
Richard Deeming21-Nov-12 9:03
memberRichard Deeming21-Nov-12 9:03 
AnswerRe: Specialized List Sorting question Pin
SledgeHammer0121-Nov-12 9:06
memberSledgeHammer0121-Nov-12 9:06 
AnswerRe: Specialized List Sorting question Pin
Richard Deeming21-Nov-12 9:32
memberRichard Deeming21-Nov-12 9:32 
AnswerRe: Specialized List Sorting question Pin
PIEBALDconsult21-Nov-12 9:57
memberPIEBALDconsult21-Nov-12 9:57 
AnswerRe: Specialized List Sorting question Pin
BobJanova21-Nov-12 23:50
memberBobJanova21-Nov-12 23:50 
QuestionWinForms Class Design Pin
Member 961929521-Nov-12 7:43
memberMember 961929521-Nov-12 7:43 
AnswerRe: WinForms Class Design Pin
Richard MacCutchan21-Nov-12 8:15
mvpRichard MacCutchan21-Nov-12 8:15 
GeneralRe: WinForms Class Design Pin
Matt U.21-Nov-12 9:16
memberMatt U.21-Nov-12 9:16 
Not sure if the OP noticed but I wanted to point this out. In Richard's response, he changed the access modifier for "string staffName" to "private" rather than "protected". Since the "StaffName" property is handled entirely by the base class, the derived types do not need to see the "staffName" member. "private" means that the object is only accessible to the class or struct defining it. "protected" would mean that the derived types could see the member as well.

EDIT:

Richard, I have a question about this now. Haha. What if the programmer decided to create a new class deriving from 'Staff' and the new class needed its own implementation of 'StaffName'? Would it be better to create a new 'private' field in the derived class? Or should 'private staffName' be changed to 'protected' in the base class? (I'm guessing create its own in the new class because none of the other derived types need it. But I wanted to clarify.)
djj55: Nice but may have a permission problem
Pete O'Hanlon: He has my permission to run it.

GeneralRe: WinForms Class Design Pin
Richard MacCutchan21-Nov-12 9:56
mvpRichard MacCutchan21-Nov-12 9:56 
GeneralRe: WinForms Class Design Pin
Matt U.21-Nov-12 9:59
memberMatt U.21-Nov-12 9:59 
GeneralRe: WinForms Class Design Pin
Richard MacCutchan21-Nov-12 10:06
mvpRichard MacCutchan21-Nov-12 10:06 
GeneralRe: WinForms Class Design Pin
Matt U.21-Nov-12 10:21
memberMatt U.21-Nov-12 10:21 
GeneralRe: WinForms Class Design Pin
PIEBALDconsult21-Nov-12 11:27
memberPIEBALDconsult21-Nov-12 11:27 
AnswerRe: WinForms Class Design Pin
PIEBALDconsult21-Nov-12 10:07
memberPIEBALDconsult21-Nov-12 10:07 
QuestionUplaod Article To Codeproject Pin
katlegoEmmnanuelNkosi21-Nov-12 4:44
groupkatlegoEmmnanuelNkosi21-Nov-12 4:44 
AnswerRe: Uplaod Article To Codeproject Pin
PIEBALDconsult21-Nov-12 4:48
memberPIEBALDconsult21-Nov-12 4:48 
AnswerRe: Uplaod Article To Codeproject Pin
Richard MacCutchan21-Nov-12 5:34
mvpRichard MacCutchan21-Nov-12 5:34 
QuestionPrint Crystal Report in c# Using Access Database? Pin
kashifjaat21-Nov-12 3:09
memberkashifjaat21-Nov-12 3:09 
QuestionGenerate Morse Code Sound Pin
long dao21-Nov-12 2:24
memberlong dao21-Nov-12 2:24 
AnswerRe: Generate Morse Code Sound Pin
Pete O'Hanlon21-Nov-12 2:45
protectorPete O'Hanlon21-Nov-12 2:45 
GeneralRe: Generate Morse Code Sound Pin
long dao21-Nov-12 2:54
memberlong dao21-Nov-12 2:54 
GeneralRe: Generate Morse Code Sound Pin
Pete O'Hanlon21-Nov-12 3:05
protectorPete O'Hanlon21-Nov-12 3:05 
QuestionKeeps returning NullReferenceException Pin
MacUseless21-Nov-12 0:08
memberMacUseless21-Nov-12 0:08 
SuggestionRe: Keeps returning NullReferenceException Pin
V.21-Nov-12 4:25
memberV.21-Nov-12 4:25 
GeneralRe: Keeps returning NullReferenceException Pin
MacUseless21-Nov-12 4:28
memberMacUseless21-Nov-12 4:28 
GeneralRe: Keeps returning NullReferenceException Pin
V.21-Nov-12 4:31
memberV.21-Nov-12 4:31 
QuestionValidate XML file against rule in db Pin
rahul.net1120-Nov-12 23:29
memberrahul.net1120-Nov-12 23:29 
AnswerRe: Validate XML file against rule in db Pin
PIEBALDconsult21-Nov-12 8:07
memberPIEBALDconsult21-Nov-12 8:07 
GeneralRe: Validate XML file against rule in db Pin
rahul.net1116-Jan-13 21:01
memberrahul.net1116-Jan-13 21:01 
QuestionHow to set the distance between checkbox and text in using TreeView ? Pin
taibc20-Nov-12 23:26
membertaibc20-Nov-12 23:26 
AnswerRe: How to set the distance between checkbox and text in using TreeView ? Pin
Jay Nardev21-Nov-12 1:03
groupJay Nardev21-Nov-12 1:03 
GeneralRe: How to set the distance between checkbox and text in using TreeView ? Pin
taibc21-Nov-12 15:06
membertaibc21-Nov-12 15:06 
QuestionHow to fix Error when i using BackgroundWorker in C# Pin
sonthuy_st20-Nov-12 21:36
membersonthuy_st20-Nov-12 21:36 
AnswerRe: How to fix Error when i using BackgroundWorker in C# Pin
@AmitGajjar20-Nov-12 22:04
member@AmitGajjar20-Nov-12 22:04 
GeneralRe: How to fix Error when i using BackgroundWorker in C# Pin
sonthuy_st20-Nov-12 22:19
membersonthuy_st20-Nov-12 22:19 
GeneralRe: How to fix Error when i using BackgroundWorker in C# Pin
@AmitGajjar20-Nov-12 22:22
member@AmitGajjar20-Nov-12 22:22 
AnswerRe: How to fix Error when i using BackgroundWorker in C# Pin
sirama200420-Nov-12 23:52
membersirama200420-Nov-12 23:52 
QuestionInvokeRequired Pin
MAW3020-Nov-12 16:04
memberMAW3020-Nov-12 16:04 
AnswerRe: InvokeRequired Pin
SledgeHammer0120-Nov-12 19:02
memberSledgeHammer0120-Nov-12 19:02 
AnswerRe: InvokeRequired Pin
BMS12122-Nov-12 23:46
memberBMS12122-Nov-12 23:46 
QuestionHow to Query if a ComboBox's AutoComplete Dialog is Open Pin
Skippums20-Nov-12 15:47
memberSkippums20-Nov-12 15:47 
QuestionFull path name of .cs file Pin
TheGermoz20-Nov-12 11:35
memberTheGermoz20-Nov-12 11:35 
AnswerRe: Full path name of .cs file Pin
Garth J Lancaster20-Nov-12 12:42
memberGarth J Lancaster20-Nov-12 12:42 
AnswerRe: Full path name of .cs file Pin
jschell20-Nov-12 13:24
memberjschell20-Nov-12 13:24 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.161205.3 | Last Updated 7 Dec 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid