Click here to Skip to main content
15,896,118 members

Response to: using listbox as a dialog box.

Revision 2
Since you are using Winforms, the easiest approach is to have a form with a single ListBox (docked to fill the form), and send it strings that are added to the ListBox. And no, this is not an unusual approach at all. Logging listboxes have been popular since the Win16 days.

You have tagged your question with C++/CLI, so I would suggest that you use _com_error[^] to convert the hresult to a formatted error message string.
Posted 15-Nov-11 12:16pm by Nish Nishant.
Tags: