Windows Develop Bookmark and Share   
 index > Windows Forms General > Horizontal scollbars not appearing in CheckedListBox
 

Horizontal scollbars not appearing in CheckedListBox

I have a CheckedListbox in my app whose items are wider than the control.  I have the Horizontal Scollbar turned on and a Horizontal scrolling extent set to 250.  I also have the scrollbars AlwaysVisible property set to true... but the horizontal scrollbar will not appear after I've populated the CLB... is this a bug?  Anyone know why it won't appear or what I have to do to make it appear?

Here's how the CLB is set up:      '
      'clbSearchResults
      '
      Me.clbSearchResults.CheckOnClick = True
      Me.clbSearchResults.HorizontalScrollbar = True
      Me.clbSearchResults.Location = New System.Drawing.Point(8, 240)
      Me.clbSearchResults.Name = "clbSearchResults"
      Me.clbSearchResults.ScrollAlwaysVisible = True
      Me.clbSearchResults.Size = New System.Drawing.Size(344, 164)
      Me.clbSearchResults.TabIndex = 11

TIA for any help...

Mike.
MigrationUser 1  Thursday, July 03, 2003 9:56 PM
You are probably talking about data-bound CheckedListBox.
If this is the case, the problem is a know issue that will be resolved in the next version.
As a workaround, you can override ToString() method to return current DisplayMember.

Helen
MigrationUser 1  Tuesday, July 15, 2003 5:53 PM

You can use google to search for other answers

Custom Search

More Threads

• HowTo Remove TabControl Margin
• Change Windows Class Name
• Having to change class type continually during development
• strange breakpoint / "...inside OS Loader lock." error when calling Form.Show()
• Unwanted gap at the top of my ScrollControl
• on-screen keyboard remove form focus
• DataGridView, How to display grid lines in all "rows"?
• Dynamically Formating TextBox
• ToolStripManager.Merge does not work with BindingNavigator
• address of in vb.net