|
-
Jun 10th, 2001, 04:55 AM
#1
Thread Starter
Junior Member
Thanks, but...
Thanks for that, but it didn't work.
EM_GETLINECOUNT is empty if that helps.
I've only got VB5 mind, does that use VB6 stuff?
-
Jun 10th, 2001, 04:59 AM
#2
Thread Starter
Junior Member
I've thought of a way of doing it!
I've thought of a way of doing it, its pritty simple.
I take whats left of the .selstart, and check how many carrage returns there are.
The problem is I dont know how to check for how many carrage returns there are.
-
Jun 10th, 2001, 07:45 PM
#3
I didn't notice that you were using the RichTextBox Control.
Here is the simplest way to tell what line the cursor is on.
VB Code:
Private Sub RichTextBox1_Change()
'Add 1 so that it starts on line 1 instead of line 0
Caption = RichTextBox1.GetLineFromChar(RichTextBox1.SelStart) + 1
End Sub
-
Jun 11th, 2001, 10:18 AM
#4
Thread Starter
Junior Member
Cheers dude, works great!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|