I have some codes that ive heard is right, but I dont know where to place them.
it is something like this
int lineNumber = 0;
lineNumber++;
lineNumber--;
string textField = lineNumber.ToString();
please tell me where to place them :D
they are (as I know) to get linenumbers infront of the sentence I write in a listbox using a button :)
like this:
1. this is the first line
2. this is the second line
3. this is the third line
4. do you know what I mean?
5. <-- is the lineNumber
6. I hope you understand it now
:)
Edited by Microguy, 30 December 2011 - 12:33 PM.


Sign In
Create Account


Back to top









