Groups | Blog | Home
all groups > dotnet windows forms > december 2003 >

dotnet windows forms : TreeViwe MouseUp


Tim Wilson [MVP]
12/5/2003 5:57:53 PM
It seems to work fine in 1.1

--
Tim Wilson
..Net Compact Framework MVP

[quoted text, click to view]

Hamilton Woods
12/5/2003 7:08:09 PM
Community,

Is there a reason that the MouseUp event for a windows form TreeView control
fires when the mouse is moved while the left mouse button is held down?
I think you'll find this one repeatable. Make a scratch windows form
project. Place a TreeView control on the form. Add some nodes to the
control. Add an event handler for its MouseUp event. Set a breakpoint in
that event handler. Watch what happens. I'm using VS.NET 1.0.
If you have an empty TreeView control, the MouseUp event fires when the left
mouse button is pressed, even before the mouse is moved. Huh.

Thanks,

--
Hamilton Woods
Accutrol, LLC
7500 S. Memorial Pkwy, 215-V
Huntsville, AL 35802
256-882-7433
HamiltonWoods@accutrol.com


hirf-spam-me-here NO[at]SPAM gmx.at
12/5/2003 9:17:22 PM
* "Hamilton Woods" <HamiltonWoods@accutrol.com> scripsit:
[quoted text, click to view]

I am able to repro the behavior you describe on a .NET 1.0 machine. I
would consider that to be a bug.

--
Herfried K. Wagner [MVP]
Hamilton Woods
12/5/2003 9:19:15 PM
Where do we go from here?

--
Hamilton Woods
Accutrol, LLC
7500 S. Memorial Pkwy, 215-V
Huntsville, AL 35802
256-882-7433
HamiltonWoods@accutrol.com


[quoted text, click to view]

hirf-spam-me-here NO[at]SPAM gmx.at
12/5/2003 11:48:34 PM
* "Hamilton Woods" <HamiltonWoods@accutrol.com> scripsit:
[quoted text, click to view]

Let's wait if somebody tells us if it works in .NET 1.1.

--
Herfried K. Wagner [MVP]
Eric Newton
12/8/2003 8:54:04 AM
Exactly how do you define "seems to work fine"... as in, A) it correctly
does NOT fire MouseUp or B) MouseUp is still firing but you feel that its
the intended behavior?

--
Eric Newton
C#/ASP Application Developer
http://ensoft-software.com/
eric@cc.ensoft-software.com [remove the first "CC."]

[quoted text, click to view]

Tim Wilson [MVP]
12/8/2003 9:53:40 AM
The MouseUp event IS firing at the appropriate time in 1.1 - when the mouse
button is released and not when the mouse is moved.

--
Tim Wilson
..Net Compact Framework MVP

[quoted text, click to view]

AddThis Social Bookmark Button