I have added a StatusStrip
control and placed a StatusLabel
inside of it. But now I want to know how to connect it to my TextBox to show the line number and position of the cursor, like: "Line 2, Row 6".
Thank you
I have added a StatusStrip
control and placed a StatusLabel
inside of it. But now I want to know how to connect it to my TextBox to show the line number and position of the cursor, like: "Line 2, Row 6".
Thank you
Get the index of the caret in the TextBox:
C#
VB.NET
Get the line number from the caret index:
C#
VB.NET
Get the character index in the current line:
C#
VB.NET
I guess you can continue from here ...