Microsoft
Software
Hardware
Network
Question : Trouble with a Winforms .NET Framework 2.0 list box
I create and populate a listbox but can not find how to display floating help text when the string is too long to display.
I have it adding a horizontal scroll bar, but hope I can make it float a help text without add a library for this. It'd be a nice to have feature but not worth that kind of effort.
Please let me know...
Thanks,
newbieweb
Answer : Trouble with a Winforms .NET Framework 2.0 list box
Add a ToolTip Control and this piece of code to your program.
private void listBox1_SelectedValueChan
ged(object
sender, EventArgs e)
{
this.toolTip1.SetToolTip(t
his.listBo
x1, listBox1.SelectedItem.ToSt
ring());
}
Random Solutions
Populate Crystal Report with In Memory Datatable Visual Studio 2005
Create Windows Shortcut from PowerShell script
Why wont a hp laptop power up?
How to modify a field length on Live Database SQL Server 2008 - Error Message "Saving Changes is not permitted..."
What is the most liklely cause of a numeric field overflow error
Explorer.exe breadcrumbs control( How do I get the windows handle?)
Excel 2007 wont open for Windows 7 OS
ODBC Microsoft Access Driver Login Failed
SQL to calculate sales per representative and per week
What is the Best Way to Transfer Settings from Windows 7 Beta to New Machine