Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 VB richtextbox

views
     
TSbradley83
post Feb 22 2006, 10:25 PM, updated 20y ago

Getting Started
**
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
nxfx
post Feb 23 2006, 08:18 AM

Enthusiast
*****
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?
shinchan^^
post Feb 23 2006, 09:37 AM

K66
*********
All Stars
21,256 posts

Joined: Jan 2003
From: Pekopon


not sure about that

u might wanna

instr(text,vbCrLf) ? find new line?

SincerePrayer
post Feb 24 2006, 04:20 PM

love to pray
Group Icon
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 smile.gif
TSbradley83
post Feb 24 2006, 11:43 PM

Getting Started
**
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
nxfx
post Feb 25 2006, 09:03 AM

Enthusiast
*****
Senior Member
979 posts

Joined: Jan 2003


Could be your MultiLine is set to false?

TSbradley83
post Feb 25 2006, 11:03 PM

Getting Started
**
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:
| Lo-Fi Version
0.0145sec    0.35    5 queries    GZIP Disabled
Time is now: 24th December 2025 - 03:16 AM