Click here to Skip to main content
15,917,060 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Run a .NET app on a machine without .NET by including DLLS???? Pin
Hypermommy1-Jul-09 2:19
Hypermommy1-Jul-09 2:19 
AnswerRe: Run a .NET app on a machine without .NET by including DLLS???? Pin
Simon P Stevens20-May-09 22:43
Simon P Stevens20-May-09 22:43 
AnswerRe: Run a .NET app on a machine without .NET by including DLLS???? Pin
Henry Minute21-May-09 8:57
Henry Minute21-May-09 8:57 
GeneralRe: Run a .NET app on a machine without .NET by including DLLS???? Pin
Hypermommy21-May-09 9:06
Hypermommy21-May-09 9:06 
GeneralRe: Run a .NET app on a machine without .NET by including DLLS???? Pin
Henry Minute21-May-09 9:18
Henry Minute21-May-09 9:18 
GeneralRe: Run a .NET app on a machine without .NET by including DLLS???? Pin
Hypermommy21-May-09 10:17
Hypermommy21-May-09 10:17 
GeneralRe: Run a .NET app on a machine without .NET by including DLLS???? Pin
Henry Minute21-May-09 10:22
Henry Minute21-May-09 10:22 
Question.NET C# TreeView, checkbox, TreeNode checked bug PinPopular
John Kaminski20-May-09 7:44
John Kaminski20-May-09 7:44 
I'm working with a .NET System.Windows.Forms.TreeView (both .NET 2.0 and 3.5) and have a problem with the check boxes not correctly affecting/reflecting the TreeNode's Checked state.

I've enabled checkboxes and have event handlers for BeforeCheck and AfterCheck to act whenever a TreeNode's checkbox is checked or unchecked. My problem is that if you place the mouse pointer directly on a node's checkbox and double-click, the checkbox's visible checked state toggles, but the Checked state of the corresponding TreeNode does not actually change. Further the TreeView's BeforeCheck and AfterCheck handlers are never invoked [this actually seems consistent and follows from the observation the these events are raised exactly and only when anything actually changes the TreeNode.Checked property, not the state of the visible check box]. A single(left)-click on the check box works properly: the Before/AfterCheck handlers are invoked and the TreeNode's Checked state changes correctly.

Double-clicking elsewhere on the displayed node toggles the expanded/collapsed state (as I assume it's suposed to do).

I've tried to find a TreeView event handler that will allow me to catch a double-click directly on the checkbox and either ignore it or modify the node's checked state myself. But I've been unable to find an event handle to catch this.

Is this a known bug? Could there be something I'm doing wrong? It gives my application a rather annoying incorrect behavior and I really don't want to abandon the use of TreeView and have to reimplement a correct "TreeView"!

Can anyone steer me toward any information about this behavior of TreeView?

Thanks in advance.
AnswerRe: .NET C# TreeView, checkbox, TreeNode checked bug Pin
John Kaminski1-Jun-09 7:57
John Kaminski1-Jun-09 7:57 
Questionfatal error C1083: Cannot open source file: '.\hello.cpp': No such file or directory Pin
mike73319-May-09 22:40
mike73319-May-09 22:40 
AnswerRe: fatal error C1083: Cannot open source file: '.\hello.cpp': No such file or directory Pin
Dave Kreskowiak20-May-09 2:08
mveDave Kreskowiak20-May-09 2:08 
QuestionEncapsulating Excel Document in Custom Application Pin
Member 319930419-May-09 6:16
Member 319930419-May-09 6:16 
AnswerRe: Encapsulating Excel Document in Custom Application Pin
led mike19-May-09 6:43
led mike19-May-09 6:43 
QuestionRe: Encapsulating Excel Document in Custom Application Pin
Member 319930419-May-09 7:32
Member 319930419-May-09 7:32 
AnswerRe: Encapsulating Excel Document in Custom Application Pin
led mike19-May-09 7:49
led mike19-May-09 7:49 
AnswerRe: Encapsulating Excel Document in Custom Application Pin
syntax28uk21-May-09 5:08
syntax28uk21-May-09 5:08 
QuestionDirectSound doesn't work under Vista? Pin
Andrey U19-May-09 1:26
Andrey U19-May-09 1:26 
AnswerRe: DirectSound doesn't work under Vista? Pin
Mark Salsbery19-May-09 6:06
Mark Salsbery19-May-09 6:06 
GeneralRe: DirectSound doesn't work under Vista? Pin
molesworth19-May-09 22:14
molesworth19-May-09 22:14 
GeneralRe: DirectSound doesn't work under Vista? Pin
Mark Salsbery20-May-09 5:16
Mark Salsbery20-May-09 5:16 
GeneralRe: DirectSound doesn't work under Vista? Pin
led mike20-May-09 5:23
led mike20-May-09 5:23 
GeneralRe: DirectSound doesn't work under Vista? Pin
Mark Salsbery20-May-09 5:41
Mark Salsbery20-May-09 5:41 
GeneralRe: DirectSound doesn't work under Vista? Pin
molesworth20-May-09 5:40
molesworth20-May-09 5:40 
GeneralRe: DirectSound doesn't work under Vista? Pin
Mark Salsbery20-May-09 5:42
Mark Salsbery20-May-09 5:42 
AnswerRe: DirectSound doesn't work under Vista? Pin
musefan20-May-09 0:08
musefan20-May-09 0:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.