Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange ListView behaviour
Message
From
08/12/2006 21:29:50
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01175169
Message ID:
01176322
Views:
13
Pete,

Try setting that in the Load event instead of the constructor.

~~Bonnie



>Hello All, I have my own customised ListView which calls a method InitializeListView() (shown below) from it's constructor
>
>
>private void InitializeListView()
>{
>    ColumnClick += new ColumnClickEventHandler(MyColumnClick);
>    MouseDown += new MouseEventHandler(MyMouseDown);
>    ItemCheck += new ItemCheckEventHandler(MyItemCheck);
>
>    if(_RightClickOpensFontDialog)
>        MouseClick += new MouseEventHandler(MyMouseClick);
>
>
>I'm sure you can see what it's doing but my problem is the property _RightClickOpensFontDialog appears to be being ignored, I default it to true in the class code and set it to whatever I need in the IDE designer, no matter what I set it to the MouseClick event (MyMouseClick) fires !!! any idea why ?
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform