|
-
Mar 27th, 2000, 01:09 AM
#1
Thread Starter
Member
I have a rich text box that displays 5 names with a grade
example:
Jonathan
Jeremy
Bob
Allen
Heather
I am trying to put their grade about 5 spaces away from there name, actaull at a tab stop. But I can't get it to work in the rich text box. I know on forms you can you the print syntax like tab() and spc() but they won't work in the RTB, does any have any ideas, thanks
example:
Jonathan B
Jeremy A
Bob B
Allen A
Heather C
-
Mar 27th, 2000, 01:23 AM
#2
Addicted Member
-
Jun 22nd, 2004, 01:41 PM
#3
Member
anyone know how to get them in line?
eg
tom B
andrew A
mark C
??
thanks!
When i write my code, there are only 2 ppl that understand it, me and God... a week later... God only knows 
(can't remember where i heard/read that)
-
Jun 22nd, 2004, 01:54 PM
#4
Banned
RTB.text = RTB.text & "Achmed" & vbtab & vbtab & "A"
RTB.text = RTB.text & "CJ" & vbtab & vbtab & "B"
RTB.text = RTB.text & "Synthia" & vbtab & vbtab & "C"
etc. it will get in line
-
Jun 22nd, 2004, 01:55 PM
#5
Hyperactive Member
Will this help
VB Code:
Dim strArray() As String
strArray = Split(rtbMarks.Text, vbCrLf)
rtbMarks.Text = ""
Dim i As Integer
Dim strMark As String
strMark = "A"
For i = 0 To UBound(strArray)
rtbMarks.Text = strArray(i) & " " & strMark & vbCrLf
Next i
?
-
Jun 22nd, 2004, 02:00 PM
#6
Banned
no mike it wont becuase the name lenght will differ
-
Jun 22nd, 2004, 02:59 PM
#7
Fanatic Member
VB Code:
RichTextBox1.Text = "Test" & Space(5) & "Test"
The whole word SPACE() works.
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
|