Kalint Posted September 6, 2009 Share Posted September 6, 2009 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 More sharing options...
0 murderdoll Posted September 6, 2009 Share Posted September 6, 2009 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 More sharing options...
0 the_architect Posted September 6, 2009 Share Posted September 6, 2009 Exactly what murderdoll has written will work for you :) Link to comment Share on other sites More sharing options...
0 Kalint Posted September 6, 2009 Author Share Posted September 6, 2009 There we are, perfect, thx! Link to comment Share on other sites More sharing options...
Question
Kalint
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