You need to set the ListBox.HorizontalExtent property to an adequate value. Often you will measure all items when inserted into the listbox using Graphics.MeasureString, then set the property to reflect the largest value.
-----Original Message----- From: Odis Wooten [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 16, 2002 6:12 PM To: [EMAIL PROTECTED] Subject: Horizontal Scrolling a Listbox I have a listbox where the items are wider than the listbox. I want to programmatically horizontally scroll the part of an item that is not visible. I cannot find out how to get at the horizontal scrollbar to reposition the thumb. Or any other way to horizontally scroll the listbox. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.
