I am writting a string of info to the MessageListBox. The length of the string is variable but is longer than the MessageListBox is wide so not all of the string info is visable. I know I can add a Horizontal Scrollbar and be able to view the info that way. But what I would prefer to do is have the MessageListBox automatically wrap the information so it would be broken at the right margin and dispalyed on two or more lines.
Is that possible :?: And, how do I do it? Is there a property setting for the MessageListBox that I can set?
Hi Marty,
I am confused by what you mean MessageListBox. Are you referring to a standard ListBox control or the MessageBox api function ?
If you are referring to a ListBox then there is no standard message that will word wrap the text to the following line in the ListBox. Matbe you could substitue a TextBox or Rich Edit control instead of a ListBox?
Yes, ListBox. I will look at RichEdit control and see if that will work. Don't need to edit the info just display it.