×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

multiline in textbox

multiline in textbox

multiline in textbox

(OP)
hi i have only recently started visual basic
i seached through the posts this post(thread766-125113)
I thought would awnser my problem.
i have tick boxes that the user selects
heres the code for 2 of the tick boxes

CODE

Private Sub chk1_Click()
If chk1.Value = vbChecked Then
txt1.Text = "texthere " & Chr$(10) & Chr$(13)
ElseIf chk1.Value = vbUnchecked Then
txt1 = ""
End If
End Sub

Private Sub chk2_Click()
If chk2.Value = vbChecked Then
txt1.Text = "more text here " & Chr$(10) & Chr$(13)
ElseIf chk2.Value = vbUnchecked Then
txt1 = ""
End If
End Sub
i add the Chr$(10) & Chr$(13) and tryd vbCrLf
as i want each output to go on a sepertate line i have multiline on true
but it will only show 1 line or the other with
thanks any help would be apreceated

RE: multiline in textbox

You probably have to also make the "Wrap Text" property "True" as well.

RE: multiline in textbox

You might also want to check is there is a "multiline" proper for the edit box.  If so, make that it's set to Yes.

Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources