Click here to Skip to main content
15,921,463 members
Home / Discussions / C#
   

C#

 
GeneralCapture windows Key. Pin
Nick Seng27-Jul-03 17:21
Nick Seng27-Jul-03 17:21 
GeneralRe: Capture windows Key. Pin
J. Dunlap27-Jul-03 17:26
J. Dunlap27-Jul-03 17:26 
GeneralRe: Capture windows Key. Pin
Nick Seng27-Jul-03 18:00
Nick Seng27-Jul-03 18:00 
QuestionHow to know when a window is maximized Pin
heelios27-Jul-03 16:33
heelios27-Jul-03 16:33 
AnswerRe: How to know when a window is maximized Pin
Nick Parker27-Jul-03 18:18
protectorNick Parker27-Jul-03 18:18 
AnswerRe: How to know when a window is maximized Pin
Alex Korchemniy27-Jul-03 18:25
Alex Korchemniy27-Jul-03 18:25 
GeneralRe: How to know when a window is maximized Pin
heelios28-Jul-03 4:05
heelios28-Jul-03 4:05 
Questionhow to call an array inside a sortedlist? Pin
kharr102727-Jul-03 13:07
kharr102727-Jul-03 13:07 
Here is what i have... I have a main form with the sortedlist declared on it. then on another for called "Edit" I have set up a struct declaring 2 arrays we will call them array1 and array2. now in the Main form when it is closed there is suppose to be a text file created that gets the info in sorted list. the info in the sorted list is as follows. the key is a student name, and the value is suppose to be thrown to the struct with the two arrays built in. my problem is i don't know how to properly call this function. i get the key in the sorted list to display fine in the text file but for the value instead of printing all the values in my array it prints Lab1.Grades. which is the name of my project(Lab1) and the name of my struct(Grades). here is my code in the exit button

private void btnExit_Click(object sender, System.EventArgs e)
{
FileStream fsFile = new FileStream("Roster.txt", FileMode.Create);
StreamWriter srOutPut = new StreamWriter(fsFile);

Grades studentGrades = new Grades();

foreach (DictionaryEntry Entry in this.slStudents)
srOutPut.WriteLine(Entry.Key.ToString () + "|" + studentGrades.labArray);

srOutPut.Close();

MessageBox.Show ("Thanks for using the Grade Calculator!", "Thank You", MessageBoxButtons.OK, MessageBoxIcon.Information);
this.Close();
}

any help is greatly appreciated thanks Kevin
GeneralSecurity a la Palladium ¿? ;) Pin
antoine@orchus-tech27-Jul-03 12:34
antoine@orchus-tech27-Jul-03 12:34 
GeneralRe: Security a la Palladium ¿? ;) Pin
Alex Korchemniy27-Jul-03 18:13
Alex Korchemniy27-Jul-03 18:13 
GeneralRe: Security a la Palladium ¿? ;) Pin
StealthyMark27-Jul-03 23:27
StealthyMark27-Jul-03 23:27 
GeneralListboxes Pin
StorBruze27-Jul-03 10:31
StorBruze27-Jul-03 10:31 
GeneralRe: Listboxes Pin
Alex Korchemniy27-Jul-03 18:20
Alex Korchemniy27-Jul-03 18:20 
QuestionHow to restart windows from c# code? Pin
Member 9627-Jul-03 9:17
Member 9627-Jul-03 9:17 
AnswerRe: How to restart windows from c# code? Pin
Mazdak27-Jul-03 9:48
Mazdak27-Jul-03 9:48 
AnswerRe: How to restart windows from c# code? Pin
Erick Sgarbi27-Jul-03 15:10
Erick Sgarbi27-Jul-03 15:10 
QuestionAdvanced Log Capabilities ? Pin
Andres Manggini27-Jul-03 8:51
Andres Manggini27-Jul-03 8:51 
GeneralTabbing to next edit box using Enter key Pin
IrishSonic27-Jul-03 8:23
IrishSonic27-Jul-03 8:23 
GeneralRe: Tabbing to next edit box using Enter key Pin
kharr102727-Jul-03 13:13
kharr102727-Jul-03 13:13 
GeneralRe: Tabbing to next edit box using Enter key Pin
dynamic27-Jul-03 13:36
dynamic27-Jul-03 13:36 
GeneralRe: Tabbing to next edit box using Enter key Pin
eggie527-Jul-03 19:07
eggie527-Jul-03 19:07 
GeneralEmbedded Resources Pin
Brian Delahunty27-Jul-03 4:35
Brian Delahunty27-Jul-03 4:35 
GeneralRe: Embedded Resources Pin
leppie27-Jul-03 5:23
leppie27-Jul-03 5:23 
GeneralRe: Embedded Resources Pin
Brian Delahunty27-Jul-03 5:29
Brian Delahunty27-Jul-03 5:29 
GeneralRe: Embedded Resources Pin
leppie27-Jul-03 5:35
leppie27-Jul-03 5:35 

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.