Help me! pls, some one help me! ahhhhhhhhhh....
-
Hi! I would like to; "really" know how to get the current text line number where the caret is at. :^) (not the "line number" just the "text line number": when you use textbox1.lines(0) it takes the entire text in line 0 even if some text are in line 1, because the text in line 1(as long as it didn't get there by pressing the return key) belongs to line 0, but when I use the code below it just says the text in line 1(even thought it belongs to line 0) as belonging to line 1.):( a = Rtb.GetLineFromCharIndex(rtb.SelectionStart) :cool:So can anyone tell me a way to get the real line number of the selected text.:cool: :-D thanks in advance:-D ps: :( (pls don't tell me to explain again!:((
-
Hi! I would like to; "really" know how to get the current text line number where the caret is at. :^) (not the "line number" just the "text line number": when you use textbox1.lines(0) it takes the entire text in line 0 even if some text are in line 1, because the text in line 1(as long as it didn't get there by pressing the return key) belongs to line 0, but when I use the code below it just says the text in line 1(even thought it belongs to line 0) as belonging to line 1.):( a = Rtb.GetLineFromCharIndex(rtb.SelectionStart) :cool:So can anyone tell me a way to get the real line number of the selected text.:cool: :-D thanks in advance:-D ps: :( (pls don't tell me to explain again!:((
make the 1 increment and u will get the exact line number.
-
Hi! I would like to; "really" know how to get the current text line number where the caret is at. :^) (not the "line number" just the "text line number": when you use textbox1.lines(0) it takes the entire text in line 0 even if some text are in line 1, because the text in line 1(as long as it didn't get there by pressing the return key) belongs to line 0, but when I use the code below it just says the text in line 1(even thought it belongs to line 0) as belonging to line 1.):( a = Rtb.GetLineFromCharIndex(rtb.SelectionStart) :cool:So can anyone tell me a way to get the real line number of the selected text.:cool: :-D thanks in advance:-D ps: :( (pls don't tell me to explain again!:((
I believe that you will have better chances of getting replies in the forum if you: :: Try to write a useful subject. Almost every thread is about someone needing help, so that is totally worthless to use as subject. :: Don't :(:(:(:( use ;P every :->:-O:wtf::confused::suss: smiley :) that :zzz::zzz::zzz::zzz::zzz::zzz::zzz: exists. :cool::cool::cool: They are useful sometimes, but if you use too many it just becomes annoying noise.
--- single minded; short sighted; long gone;
-
Hi! I would like to; "really" know how to get the current text line number where the caret is at. :^) (not the "line number" just the "text line number": when you use textbox1.lines(0) it takes the entire text in line 0 even if some text are in line 1, because the text in line 1(as long as it didn't get there by pressing the return key) belongs to line 0, but when I use the code below it just says the text in line 1(even thought it belongs to line 0) as belonging to line 1.):( a = Rtb.GetLineFromCharIndex(rtb.SelectionStart) :cool:So can anyone tell me a way to get the real line number of the selected text.:cool: :-D thanks in advance:-D ps: :( (pls don't tell me to explain again!:((
i agree with u Guffa.Either he is not serious and playing games, I think this is the first time he is putting the query .:-D
-
I believe that you will have better chances of getting replies in the forum if you: :: Try to write a useful subject. Almost every thread is about someone needing help, so that is totally worthless to use as subject. :: Don't :(:(:(:( use ;P every :->:-O:wtf::confused::suss: smiley :) that :zzz::zzz::zzz::zzz::zzz::zzz::zzz: exists. :cool::cool::cool: They are useful sometimes, but if you use too many it just becomes annoying noise.
--- single minded; short sighted; long gone;
-
i agree with u Guffa.Either he is not serious and playing games, I think this is the first time he is putting the query .:-D
Yes I'm new here, just posted 5 or 6 times so far. Sorry for any inconvenience. and sorry about the subject, I was just trying to get some attention to my string, I guess I was wrong, I guess proper subject will get even more attention. and I didn't know these smilies produced sound, even if it did I didn't get any sound so far.
-
make the 1 increment and u will get the exact line number.
-
No, they don't. Putting a bunch of them in your posts turns your post into unreadable noise.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007