• 0

VB Mutliline text box issue


Question

Hello,

I'm trying to run a multiline text box as a sort of console for an app i'm developing.

If for example I have 2 dialog boxes and the text box is Sysconsole

1#.

SysConsole.Text = "Opened About Connect "

AboutConnect.Show()

2#

SysConsole.Text = "Opened Manager"

Manager.Show()

-

How do I make the Sysconsole not do "Opened About Connect Opened Manager" but rather

Opened About Connect

Opened Manager

? I played with Environment.Newline to no avail.

Thx

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Try to look for the "multiline" property for the textbox in design mode and if it exists set it to true, then try to write something like

TextBox.Text += Environment.NewLine + "This is a new line"

or you can use the append

TextBox.AppendText(Environment.NewLine & "This is a new line")

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.