I have a C# app that through a Reflection terminal emulator API pulls information off a screen line by line and adds each line to a string. Between each line is a \n. Later in the code the completed string was being correctly displayed in a MessageBox. This was great until one of the screens included a MORE button which means there are multiple screens of data. I can add the additional lines of data to the string but the MessageBox gets really large necessitating a scrolling capability. So, I used a TextBox with scrollbars, multiline, etc. The problem is that the data is no longer correctly formatted. It acts like TextBox does not see the newline. I have read many postings suggesting using Environment.NewLine instead of \n but it results in the same formatting unlike it was using the MessageBox.
I am relatively new to C# and am hoping someone can point in the right direction on how to handle this. Any advise will be much appreciated.
Loading
TonyPosted Nov 3, 2009, 1:06 PM
Thanx for the prompt reply and for making me go through my code one more time.
Posted Nov 3, 2009, 12:52 PM
Try to change the default settings of Messagebox.Show() method.It's onscreen window size according to the lenght of input text line...
Hope it helps....
Kirtan PatelPosted Nov 3, 2009, 12:45 PM
Can you provide me Some sample Data You Displaying in TextBox Which Causes no new Line in TextBOx
i can help you :)