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!

lvw checkboxes not working correctly

Status
Not open for further replies.

dekken

MIS
Mar 11, 2002
11
US
I have a lvw in VB6, which on form loading does not have checkboxes enabled. A user can enable them by pressing a button on the form, but the problem is that when I use lvw[object].checkboxes = true, as part of the buttons click sub, it does not show the checkboxes. Instead, it shifts the text over and displays the area where the checkboxes would normally be. If you click on this blank space the checkbox for that particular area appears. Any ideas on how to fix this issue?

-Joshua Cowhig
Net. Admin.
 
I believe you have to set the checkboxes property before loading the listview.

If it needs to be done on a button click, you may need to re-load the listview on the click, setting the checkboxes property first.
 
Seems like a bug, huh?
The only way I've found to get past this is to set Checkboxes to True at design time, then set it to False at runtime.. maybe in the form's Load event.
 
Got it working! Make sure you set the property after adding all the heads/text/etc. That is really going to be annoying for what I am using it for, but what must be done must be done. Thanks for the help.

-Joshua Cowhig
Net. Admin.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top