Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want to do read rich text box and its 1st line data set to label 1 and rich text box 2nd line data in label 2
pleas help me...

eg-



RICH TEXT BOX------(1st line)APPLE
(2nd line)BANANA

LABLE 1 ------- APPLE

LABLE 2-------- BANANA
Posted
Updated 15-Apr-15 21:58pm
v2

VB.NET
If YourRichTextBox.Lines.Length >= 2 Then
    FirstLineLabel.Text = YourRichTextBox.Lines(0)
    SecondLineLabel.Text = YourRichTextBox.Lines(1)
End If
 
Share this answer
 
Comments
waruna 92 19-Apr-15 11:37am    
thanks a lot friend...
I think it can't be mad with richtextbox
try text box line
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900