Click here to Skip to main content
15,892,059 members
Home / Discussions / C#
   

C#

 
QuestionMaking a global variable Pin
Blekk12-Nov-06 12:02
Blekk12-Nov-06 12:02 
AnswerRe: Making a global variable Pin
Christian Graus12-Nov-06 12:20
protectorChristian Graus12-Nov-06 12:20 
GeneralRe: Making a global variable Pin
Blekk12-Nov-06 13:06
Blekk12-Nov-06 13:06 
GeneralRe: Making a global variable Pin
Anthony Mushrow12-Nov-06 13:12
professionalAnthony Mushrow12-Nov-06 13:12 
GeneralRe: Making a global variable Pin
Christian Graus12-Nov-06 13:57
protectorChristian Graus12-Nov-06 13:57 
AnswerRe: Making a global variable Pin
beatles169212-Nov-06 19:36
beatles169212-Nov-06 19:36 
GeneralRe: Making a global variable Pin
Blekk13-Nov-06 5:47
Blekk13-Nov-06 5:47 
GeneralRe: Making a global variable Pin
Blekk13-Nov-06 8:01
Blekk13-Nov-06 8:01 
Ok, I don't know what to do now. I am creating a TextEditor (because I saw it in another post Poke tongue | ;-P ).

Anyway, I have created the main form, but when the program starts it displays another form called newDlg.cs It has buttons on, with labels saying "Create a Text File:" or "Create a CSV File:" etc.

When the button is clicked, it opens the main form and assigns a variable called fileFormat to 1 or 2 (for Text File and CSV respectively). The fileFormat variable is then used to determine whether the file can be saved as a .txt or a .csv when the user clicks Save.

I need to somehow make fileFormat global because it is used in newDlg.cs and Main.cs

I tried the method of creating a globalVars.cs class but that didn't work.

Anyone got any idea?

Thanks.
QuestionSplitting a string message into a list of Objects Pin
kristamed12-Nov-06 11:50
kristamed12-Nov-06 11:50 
AnswerRe: Splitting a string message into a list of Objects Pin
Christian Graus12-Nov-06 12:05
protectorChristian Graus12-Nov-06 12:05 
AnswerRe: Splitting a string message into a list of Objects Pin
shopi3012-Nov-06 13:58
shopi3012-Nov-06 13:58 
AnswerRe: Splitting a string message into a list of Objects Pin
Alexandr Kovshovik12-Nov-06 20:36
Alexandr Kovshovik12-Nov-06 20:36 
QuestionHow to Set DataGridView.Rows[0].Visible To False ? Pin
hdv21212-Nov-06 10:27
hdv21212-Nov-06 10:27 
AnswerRe: How to Set DataGridView.Rows[0].Visible To False ? Pin
Christian Graus12-Nov-06 11:15
protectorChristian Graus12-Nov-06 11:15 
GeneralRe: How to Set DataGridView.Rows[0].Visible To False ? Pin
hdv21212-Nov-06 11:22
hdv21212-Nov-06 11:22 
GeneralRe: How to Set DataGridView.Rows[0].Visible To False ? Pin
Christian Graus12-Nov-06 12:06
protectorChristian Graus12-Nov-06 12:06 
GeneralRe: How to Set DataGridView.Rows[0].Visible To False ? Pin
hdv21212-Nov-06 12:23
hdv21212-Nov-06 12:23 
GeneralRe: How to Set DataGridView.Rows[0].Visible To False ? Pin
Christian Graus12-Nov-06 12:30
protectorChristian Graus12-Nov-06 12:30 
AnswerRe: How to Set DataGridView.Rows[0].Visible To False ? Pin
shopi3012-Nov-06 14:12
shopi3012-Nov-06 14:12 
QuestionMoving Other Windows Pin
Now_Loading12-Nov-06 7:42
Now_Loading12-Nov-06 7:42 
AnswerRe: Moving Other Windows Pin
Amar Chaudhary12-Nov-06 8:21
Amar Chaudhary12-Nov-06 8:21 
GeneralRe: Moving Other Windows Pin
shopi3012-Nov-06 13:49
shopi3012-Nov-06 13:49 
GeneralRe: Moving Other Windows Pin
Now_Loading12-Nov-06 14:03
Now_Loading12-Nov-06 14:03 
GeneralRe: Moving Other Windows Pin
Amar Chaudhary12-Nov-06 15:15
Amar Chaudhary12-Nov-06 15:15 
GeneralRe: Moving Other Windows Pin
Now_Loading12-Nov-06 15:55
Now_Loading12-Nov-06 15:55 

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.