Click here to Skip to main content
15,902,891 members
Home / Discussions / C#
   

C#

 
GeneralRe: Types of exceptions Pin
James T. Johnson23-Feb-02 19:49
James T. Johnson23-Feb-02 19:49 
GeneralWhy cant i declare this! Pin
23-Feb-02 18:20
suss23-Feb-02 18:20 
GeneralRe: Why cant i declare this! Pin
James T. Johnson23-Feb-02 20:03
James T. Johnson23-Feb-02 20:03 
GeneralRe: Why cant i declare this! Pin
Phil Wright28-Feb-02 22:58
Phil Wright28-Feb-02 22:58 
You can only use 'const' on simple values that can be computed at compile time. For example, assigning a fixed value.

Your code wants to do something more complex which involves creating a new object. Just because we can see it is fixed does not mean the compiler can.

Therefore you need to use 'readonly' instead of 'const' to get the same effect.

Phil Wright
uk_phil_wright@hotmail.com
GeneralEasy question: bin & obj directories Pin
TigerNinja_23-Feb-02 16:10
TigerNinja_23-Feb-02 16:10 
GeneralRe: Easy question: bin & obj directories Pin
James T. Johnson23-Feb-02 19:46
James T. Johnson23-Feb-02 19:46 
GeneralResource file (.resource/.resx) help/howto Pin
Andrew Connell23-Feb-02 4:55
Andrew Connell23-Feb-02 4:55 
GeneralRe: Resource file (.resource/.resx) help/howto Pin
Andrew Connell23-Feb-02 13:37
Andrew Connell23-Feb-02 13:37 
GeneralRe: Resource file (.resource/.resx) help/howto Pin
Peter Stephens24-Feb-02 11:18
Peter Stephens24-Feb-02 11:18 
GeneralCompile error, help! Pin
22-Feb-02 16:55
suss22-Feb-02 16:55 
GeneralRe: Compile error, help! Pin
James T. Johnson22-Feb-02 17:11
James T. Johnson22-Feb-02 17:11 
GeneralRe: Compile error, help! Pin
Anders Molin24-Feb-02 11:28
professionalAnders Molin24-Feb-02 11:28 
GeneralRe: Compile error, help! Pin
Peter Stephens24-Feb-02 11:43
Peter Stephens24-Feb-02 11:43 
GeneralChanging value of all TextBoxes Pin
Gavin_Mannion21-Feb-02 22:59
Gavin_Mannion21-Feb-02 22:59 
GeneralRe: Changing value of all TextBoxes Pin
SimonS21-Feb-02 23:07
SimonS21-Feb-02 23:07 
GeneralRe: Changing value of all TextBoxes Pin
Gavin_Mannion21-Feb-02 23:26
Gavin_Mannion21-Feb-02 23:26 
GeneralRe: Changing value of all TextBoxes Pin
James T. Johnson22-Feb-02 7:27
James T. Johnson22-Feb-02 7:27 
GeneralRe: Changing value of all TextBoxes Pin
SimonS25-Feb-02 0:14
SimonS25-Feb-02 0:14 
QuestionHow to Chnage the Default Select bgcolor of the TreeView item Pin
Welson21-Feb-02 16:05
Welson21-Feb-02 16:05 
QuestionHow do you create an object from a C++ DLL in C# Pin
21-Feb-02 14:05
suss21-Feb-02 14:05 
AnswerRe: How do you create an object from a C++ DLL in C# Pin
Nemanja Trifunovic21-Feb-02 14:52
Nemanja Trifunovic21-Feb-02 14:52 
GeneralPlaying sounds through c# Pin
Profox Jase21-Feb-02 4:57
Profox Jase21-Feb-02 4:57 
GeneralRe: Playing sounds through c# Pin
21-Feb-02 7:22
suss21-Feb-02 7:22 
GeneralRe: Playing sounds through c# Pin
Peter Stephens21-Feb-02 7:42
Peter Stephens21-Feb-02 7:42 
GeneralRe: Playing sounds through c# Pin
Profox Jase21-Feb-02 9:38
Profox Jase21-Feb-02 9:38 

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.