Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ListView View Property Flaky
Message
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Contrôles ActiveX
Titre:
ListView View Property Flaky
Divers
Thread ID:
00607723
Message ID:
00607723
Vues:
46
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
Répondre
Fil
Voir

Click here to load this message in the networking platform