Click here to Skip to main content
15,908,834 members
Home / Discussions / C#
   

C#

 
GeneralRe: Text in bitmap Pin
mimar8-Dec-07 1:05
mimar8-Dec-07 1:05 
GeneralRe: Text in bitmap Pin
Anthony Mushrow8-Dec-07 2:20
professionalAnthony Mushrow8-Dec-07 2:20 
Generalmain Database in C# Pin
Dilawar7-Dec-07 11:23
Dilawar7-Dec-07 11:23 
GeneralRe: main Database in C# Pin
Pete O'Hanlon7-Dec-07 11:36
mvePete O'Hanlon7-Dec-07 11:36 
GeneralRe: main Database in C# Pin
Paul Conrad7-Dec-07 13:40
professionalPaul Conrad7-Dec-07 13:40 
GeneralRe: main Database in C# Pin
Paul Conrad7-Dec-07 13:41
professionalPaul Conrad7-Dec-07 13:41 
GeneralClass Master of Class , and prof code writer ... Pin
I Believe In GOD7-Dec-07 10:26
I Believe In GOD7-Dec-07 10:26 
GeneralRe: Class Master of Class , and prof code writer ... Pin
Pete O'Hanlon7-Dec-07 10:58
mvePete O'Hanlon7-Dec-07 10:58 
Read articles on this site. Look for articles that get higher ratings and have a read through the code. BTW - the code that you quoted as being written by a professional developer isn't very good. This should have been done in a much more robust fashion, e.g.
public enum SpecialFolderType
{
  Desktop,
  Personal
}
Then further on...

private Dictionary<SpecialFolderType, string> _folders = new Dictionary<SpecialFolderType, string>();

...
_folders.Add(SpecialFolderType.Desktop, Environment.SpecialFolder.Personal);
.. and so on.

Then you would retrieve it with
public string Desktop { return _folders[SpecialFolderType.Desktop].Value; }
Obviously there are more things that could be done to beef this up even further, such as checking values and so on, but you get the idea.


Deja View - the feeling that you've seen this post before.

My blog | My articles



GeneralRe: Class Master of Class , and prof code writer ... Pin
I Believe In GOD7-Dec-07 11:08
I Believe In GOD7-Dec-07 11:08 
GeneralRe: Class Master of Class , and prof code writer ... Pin
Christian Graus7-Dec-07 11:02
protectorChristian Graus7-Dec-07 11:02 
GeneralRe: Class Master of Class , and prof code writer ... Pin
I Believe In GOD7-Dec-07 11:19
I Believe In GOD7-Dec-07 11:19 
GeneralRe: Class Master of Class , and prof code writer ... Pin
Christian Graus7-Dec-07 16:21
protectorChristian Graus7-Dec-07 16:21 
Generalquestion about datagridview Pin
E_Gold7-Dec-07 10:02
E_Gold7-Dec-07 10:02 
AnswerRe: question about datagridview Pin
I Believe In GOD7-Dec-07 10:13
I Believe In GOD7-Dec-07 10:13 
GeneralRe: question about datagridview Pin
Giorgi Dalakishvili7-Dec-07 10:14
mentorGiorgi Dalakishvili7-Dec-07 10:14 
GeneralRe: question about datagridview Pin
E_Gold7-Dec-07 10:33
E_Gold7-Dec-07 10:33 
GeneralRe: question about datagridview Pin
Giorgi Dalakishvili7-Dec-07 10:38
mentorGiorgi Dalakishvili7-Dec-07 10:38 
GeneralTaskbar Popup Pin
s3rro7-Dec-07 9:20
s3rro7-Dec-07 9:20 
GeneralRe: Taskbar Popup Pin
Kristian Sixhøj7-Dec-07 9:37
Kristian Sixhøj7-Dec-07 9:37 
GeneralAttach/Detach Component Pin
A.Asif7-Dec-07 9:14
A.Asif7-Dec-07 9:14 
GeneralRe: Attach/Detach Component Pin
Giorgi Dalakishvili7-Dec-07 10:30
mentorGiorgi Dalakishvili7-Dec-07 10:30 
QuestionWeb Application <th> elements?</th> Pin
Imran Adam7-Dec-07 8:35
Imran Adam7-Dec-07 8:35 
GeneralRe: Web Application elements? Pin
Christian Graus7-Dec-07 9:50
protectorChristian Graus7-Dec-07 9:50 
GeneralThanks to you all!!! Pin
kingletas7-Dec-07 7:28
kingletas7-Dec-07 7:28 
GeneralRe: Thanks to you all!!! Pin
Judah Gabriel Himango7-Dec-07 10:33
sponsorJudah Gabriel Himango7-Dec-07 10:33 

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.