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

C#

 
GeneralRe: Text in bitmap Pin
Anthony Mushrow7-Dec-07 14:17
professionalAnthony Mushrow7-Dec-07 14:17 
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 
Hi all

have a good day

how I can write a good code for my apps

I mean , I know a lot of stuff ( API , WMI , Database , Drawing , Encryption , Sockets .... )

and every time I write a program it's work very fine ,

but I didn't like the code that I write Frown | :(
(I need my code to be like professionals code)

for example .... I used this in one of my apps
[code]
lbl1.Text = Environment.GetFolderPath(Evironment.SpecialFolder.Personal);
lbl2.Text = Environment.GetFolderPath(Evironment.SpecialFolder.Desktop);
.
.
.
.
all the special folders
[/code]

but someone professional wrote it this way :
He created a new class file ( Folders.cs ) and add it to project
[code]
public class SpecialFolder
{
private static string [] SpecialFolders = null;

static SpecialFolder()
{
SpecialFolders[0] = Environment.GetFolderPath( Environment.SpecialFolder.Personal);
SpecialFolders[1] = Environment.GetFolderPath( Environment.SpecialFolder.Desktop);
.
.
.
.


}
public static string Documents { get { return SpecialFolders[0]; } }
public static string Desktop { get { return SpecialFolders[1]; } }
}
[/code]
------ and he used it like
[code]
lbl1.Text = SpecialFolder.Desktop;
lbl2.Text = SpecialFolder.Documents ;
.
.
.
.
[/code]


would be please advice me what should I read , or what should I learn ..

Kind regards ...

I know nothing , I know nothing

GeneralRe: Class Master of Class , and prof code writer ... Pin
Pete O'Hanlon7-Dec-07 10:58
mvePete O'Hanlon7-Dec-07 10:58 
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 

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.