- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 4
- Posts with Downvotes
- 1
- Downvoting Members
- 4
4 Posted Topics
I think that what you need to do is add a key listener to the form. Which then checks to see if the enter button was pressed and if so fires a method you call when the button is actually clicked.
[QUOTE=james6754;1409178]Hi everyone.... public void LoopGrades() { try//Start try block { //Start TextReader TextReader grades = new StreamReader("grades.dat"); ResultOfData = grades.ReadLine(); } catch (FileNotFoundException e) { MessageBox.Show("File Not Found!", "Error"); } //Loop through grades while (ResultOfData != null) { //ResultOfData is given the value that is read from grades.dat ResultOfData = …
[CODE=c]for(int i = 1; i <= 20; i++) { Console.WriteLine(i + " squared is " + i*i); }[/CODE]
I think this: [CODE]# $opt1=mysql_query("SELECT opt1 FROM quiz"); # $opt2=mysql_query("SELECT opt2 FROM quiz"); # $opt3=mysql_query("SELECT opt3 FROM quiz"); [/CODE] Should be : [CODE] # $opt1=mysql_query("SELECT opt1 FROM quiz WHERE id=$id"); # $opt2=mysql_query("SELECT opt2 FROM quiz WHERE id=$id"); # $opt3=mysql_query("SELECT opt3 FROM quiz WHERE id=$id"); [/CODE] In fact all the SELECT …
The End.
Koekoeksklok