Click here to Skip to main content
15,925,499 members
Home / Discussions / C#
   

C#

 
QuestionHow to write on a textarea when going thru a big loop? Pin
Eddymvp14-Feb-07 5:10
Eddymvp14-Feb-07 5:10 
AnswerRe: How to write on a textarea when going thru a big loop? Pin
Colin Angus Mackay14-Feb-07 5:19
Colin Angus Mackay14-Feb-07 5:19 
GeneralRe: How to write on a textarea when going thru a big loop? Pin
Eddymvp14-Feb-07 5:31
Eddymvp14-Feb-07 5:31 
AnswerRe: How to write on a textarea when going thru a big loop? Pin
Guffa14-Feb-07 6:04
Guffa14-Feb-07 6:04 
GeneralRe: How to write on a textarea when going thru a big loop? Pin
Eddymvp14-Feb-07 6:30
Eddymvp14-Feb-07 6:30 
GeneralRe: How to write on a textarea when going thru a big loop? Pin
Ed.Poore14-Feb-07 6:39
Ed.Poore14-Feb-07 6:39 
GeneralRe: How to write on a textarea when going thru a big loop? Pin
Eddymvp14-Feb-07 8:50
Eddymvp14-Feb-07 8:50 
GeneralRe: How to write on a textarea when going thru a big loop? Pin
Ed.Poore14-Feb-07 9:27
Ed.Poore14-Feb-07 9:27 
GeneralDoEvents can be dangerous Pin
Wayne Phipps14-Feb-07 10:07
Wayne Phipps14-Feb-07 10:07 
GeneralRe: DoEvents can be dangerous Pin
Ed.Poore14-Feb-07 10:22
Ed.Poore14-Feb-07 10:22 
AnswerRe: How to write on a textarea when going thru a big loop? Pin
Bassam Saoud14-Feb-07 5:24
Bassam Saoud14-Feb-07 5:24 
AnswerRe: How to write on a textarea when going thru a big loop? Pin
Stefan Troschuetz14-Feb-07 5:33
Stefan Troschuetz14-Feb-07 5:33 
QuestionEnumerators In C# Pin
Tee12314-Feb-07 4:30
Tee12314-Feb-07 4:30 
AnswerRe: Enumerators In C# Pin
Colin Angus Mackay14-Feb-07 4:47
Colin Angus Mackay14-Feb-07 4:47 
GeneralRe: Enumerators In C# Pin
Tee12314-Feb-07 5:14
Tee12314-Feb-07 5:14 
GeneralRe: Enumerators In C# Pin
Colin Angus Mackay14-Feb-07 5:25
Colin Angus Mackay14-Feb-07 5:25 
GeneralRe: Enumerators In C# Pin
Ed.Poore14-Feb-07 6:41
Ed.Poore14-Feb-07 6:41 
GeneralRe: Enumerators In C# Pin
Russell Jones14-Feb-07 6:03
Russell Jones14-Feb-07 6:03 
In general we don't care that much what the underlying value of an enum is.(We are more interested in readability for instance).

When you start out in c# you will often have these moments when you don't see why you have to do things, especially when those things involve casting. The aim here is to remove ambiguity. I would say that most times when i use an enum i would want to pass Cars.Honda and not the value 3.

How about the method GetInCar()

we might declare it as

public void GetInCar(Cars carToGetIn)<br />
{<br />
this.CurrentCar = carToGetIn;<br />
}


If you want to get in the Honda we would call the method

GetInCar(Cars.Honda);

If we want to find which car we're in

public Cars WhichCarAmIIn() <br />
{<br />
return this.CurrentCar;<br />
}


If we've done everything right this should return Cars.Honda

We never really need to know what the value is for most stuff that we do. There are times that we will need to know, but often it's enough to know that the values are unique for each item

HTH

Russ
GeneralRe: Enumerators In C# Pin
Tee12314-Feb-07 9:54
Tee12314-Feb-07 9:54 
GeneralRe: Enumerators In C# Pin
Russell Jones14-Feb-07 22:22
Russell Jones14-Feb-07 22:22 
QuestionFind location of Notification area(SysTray) [modified] Pin
Russell Jones14-Feb-07 4:15
Russell Jones14-Feb-07 4:15 
AnswerRe: Find location of Notification area(SysTray) Pin
Stefan Troschuetz14-Feb-07 4:33
Stefan Troschuetz14-Feb-07 4:33 
QuestionCreate an entry in the left-click menu of word files Pin
Muhammad Nauman Yousuf14-Feb-07 3:56
Muhammad Nauman Yousuf14-Feb-07 3:56 
QuestionDeploy Font in Windows Application Pin
yesufollower14-Feb-07 3:28
yesufollower14-Feb-07 3:28 
AnswerRe: Deploy Font in Windows Application Pin
sharpiesharpie14-Feb-07 5:29
sharpiesharpie14-Feb-07 5:29 

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.