Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListView View Property Flaky
Message
 
 
To
All
General information
Forum:
Visual Basic
Category:
ActiveX controls
Title:
ListView View Property Flaky
Miscellaneous
Thread ID:
00607723
Message ID:
00607723
Views:
47
I am using a ListView in a custom control. While I do special things with the listview (and hence why I have it in a custom control), I am delegating the View property directly to the constituent listview.

'---------------------------------------------------------------------
Public Property Let View(NewValue As ListViewConstants)
Const PROP_NAME As String = "View"

lvwMain.View = NewValue
PropertyChanged PROP_NAME
End Property
'-----------------------------------------------------------------------

Now, everything works as it is supposed to when the control is placed directly on a form. However, when I place my custom control in another container, the listview view property acts goofy...

lvwLargeIcon, lvwReport --> OK
lvwSmallIcon --> Listview displays List (sometimes with all entries mashed together on one line)
lvwList --> Displays nothing

I've looked around on the Web, but could not find any reference to any sort of bug involving the View property. Is there something I'm missing??

John Barone
Reply
Map
View

Click here to load this message in the networking platform