line numbers?
-
hi all, how can we c the line number in our code window? Thnaks, Rahi
If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "
dear its so easy.........line no. is displayed on status bar (Down on window)of our code window as Ln . for e.g. Ln 19 col 9 it means our cursor is on line 19 & col 9 is it ok or ur question was differnt? :)
priya
-
hi all, how can we c the line number in our code window? Thnaks, Rahi
If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "
If you're using .NET, then, yes. Just go into the Tools/Options/Text Editor, choose VB, and check the box.
Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
-
If you're using .NET, then, yes. Just go into the Tools/Options/Text Editor, choose VB, and check the box.
Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
-
Sir, Can I programically find , In which line number presently I am.(using vb.net 2005) Thanks and regards pankaj
I doubt it
Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
-
I doubt it
Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
-
sir, U mean , i can't calculate the linenumber in the textbox (multiline option or richeditcontrol ) Thnaks and Regards pankaj
You know, you ask a different question every time. Yes, of course you can work out a line number from a textbox. Just count the number of newlines.
Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
-
You know, you ask a different question every time. Yes, of course you can work out a line number from a textbox. Just count the number of newlines.
Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
-
sorry sir, I did not mean that . I wanted to know , the line number , On which the cursor presently is, into the textbox , programically. Thanks and regards Pankaj
Hi, you can take a look here for a start: http://www.codeproject.com/cs/samples/linenumberingapp.asp[^] There are also heaps of hits on google which let you use GetCurPos() and GetCursorPos() to get the position of the caret if you wish to return the line you are currently editing. I'm sure there are some built in things in the framework, though I'm really tired and can't think at the moment. Cheers, Daniel