How do open file insert to VB richtextbox in order to count accurate line in richtextbox not before open file count line
VB richtextbox
VB richtextbox
|
|
Feb 22 2006, 10:25 PM, updated 20y ago
Show posts by this member only | Post
#1
|
![]() ![]()
Junior Member
66 posts Joined: Feb 2005 |
How do open file insert to VB richtextbox in order to count accurate line in richtextbox not before open file count line
|
|
|
|
|
|
Feb 23 2006, 08:18 AM
Show posts by this member only | Post
#2
|
![]() ![]() ![]() ![]() ![]()
Senior Member
979 posts Joined: Jan 2003 |
I dont understant wat you mean by count line. You mean to count how many lines of text in the textbox?
|
|
|
Feb 23 2006, 09:37 AM
Show posts by this member only | Post
#3
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
All Stars
21,256 posts Joined: Jan 2003 From: Pekopon |
not sure about that
u might wanna instr(text,vbCrLf) ? find new line? |
|
|
Feb 24 2006, 04:20 PM
Show posts by this member only | Post
#4
|
|
Elite
1,120 posts Joined: Jun 2005 |
bradley83,
You can try load the RTF into the control with CODE RTF.TextRTF = "new rtf file data" Happy Coding |
|
|
Feb 24 2006, 11:43 PM
Show posts by this member only | Post
#5
|
![]() ![]()
Junior Member
66 posts Joined: Feb 2005 |
yes count how many lines of text in the textbox after open file from directory but after i open file into richtext it just count one line only
|
|
|
Feb 25 2006, 09:03 AM
Show posts by this member only | Post
#6
|
![]() ![]() ![]() ![]() ![]()
Senior Member
979 posts Joined: Jan 2003 |
Could be your MultiLine is set to false?
|
|
|
Feb 25 2006, 11:03 PM
Show posts by this member only | Post
#7
|
![]() ![]()
Junior Member
66 posts Joined: Feb 2005 |
no it just count line in .txt not in my richtextbox...i want count line in my richtextbox after i input .txt. For example that .txt file is 2 lines then input to my richtextbox count 2 lines as well but my richtextbox is 4 lines
|
| Change to: | 0.0148sec
1.17
5 queries
GZIP Disabled
Time is now: 23rd December 2025 - 06:52 PM |