Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Listbox with checkboxes 1

Status
Not open for further replies.

ZOR

Technical User
Jan 30, 2002
2,963
GB
I thought in VB6 there was a listbox which offered checkboxes?, maybe I am wrong? I have had enough of the listview control, all I want is vertical scrollbars, but it keeps giving me vertical and horizontal. If there is a listbox, can someone please tell me the component reference, and most importantly if there are any complications in using it (ie will it self register from a package, or does it need a brain surgeon at the other end. Thanks
 
There is - just have a look at the listbox' Style property...
 
As far as I know the only standard listbox type of control in VB6 that offers checkboxes is the Listview.

Set the view property to lvwReport and the Checkboxes property to true.

You will get a vertical scrollbar only if the list items take more space than the control has. Let me know if this helps
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'There are 10 kinds of people in the world: those who understand binary, and those who don't.'
 
... Or of course you could use a standard list box with Style property set to Checkbox! Let me know if this helps
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'There are 10 kinds of people in the world: those who understand binary, and those who don't.'
 
Sorry StrongM, we seem to have posted together! Let me know if this helps
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'There are 10 kinds of people in the world: those who understand binary, and those who don't.'
 
Thanks a lot folks, feel like a lucky fisherman the way the resposes flooded in. I never looked in the style property so I am a happy man. Cannot wait to ditch the listview control. It was used in the ivyReport mode, but it kept adding horizontal scroll bars, presumeably because the text had .... after it, possibly wordrap which I could not eliminate. Probably a good control if you know what you are doing. Thanks again all, regards.
 
Hi Gang.

I'm sure I'm missing something simple, but here it is: I have an mdi application with many mdi child forms. On only one form (of the many used), whenever it is loaded, the menu bar across the top of my parent form disappears. When the form is unloaded OR another form is displayed, the menu returns... I'm about to have a hemorrage! Any help would be apprciated.
 
StormbringerV,

You should start a new thread instead of tacking onto an existing one.

As to your question, the MDI child form you are opening may have a menu set up, but none of it's items are visible. If this is the case, when you open the MDI child it will make the main MDI form's menu disappear.

Robert
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top