Description:
A WinForm TreeView, the the CheckBox initial state of a node is false, when you double-click a checkbox of this node, there will be a very strange situation:
The first double-click a checkbox and a checkbox to display the status switch twice state, unchecked-> checked-> unchecked, and AfterCheck events only trigger once, the AfterCheck event to the checkbox state to checked. Checkbox state and display the status inconsistency
Every time you double-click a checkbox to display the status once switch AfterCheck will trigger and the state of the checkbox to display the status and value remains the contrary.
In addition to the above problem, another thing, when double-clicking the treeview s checkbox, if you go to click or double-click any part of the interface, in addition to this treeview, the system will ignore the click event for the first time. For example, a window, a treeview, an ok button, when I double-click the treeview with a checkbox, go to the point that ok button,
To Search:
File list (Check if you may need any files):
TreeViewEx
..........\testTreeView
..........\testTreeView.sln
..........\testTreeView.suo
..........\............\bin
..........\............\...\Debug
..........\............\...\.....\testTreeView.exe
..........\............\...\.....\testTreeView.pdb
..........\............\...\.....\testTreeView.vshost.exe
..........\............\...\Release
..........\............\...\.......\testTreeView.exe
..........\............\...\.......\testTreeView.pdb
..........\............\...\.......\testTreeView.vshost.exe
..........\............\Form1.cs
..........\............\Form1.Designer.cs
..........\............\Form1.resx
..........\............\obj
..........\............\...\Debug
..........\............\...\.....\TempPE
..........\............\...\.....\testTreeView.csproj.GenerateResource.Cache
..........\............\...\.....\testTreeView.exe
..........\............\...\.....\testTreeView.Form1.resources
..........\............\...\.....\testTreeView.pdb
..........\............\...\.....\testTreeView.Properties.Resources.resources
..........\............\...\Release
..........\............\...\.......\TempPE
..........\............\...\.......\testTreeView.csproj.GenerateResource.Cache
..........\............\...\.......\testTreeView.exe
..........\............\...\.......\testTreeView.Form1.resources
..........\............\...\.......\testTreeView.pdb
..........\............\...\.......\testTreeView.Properties.Resources.resources
..........\............\...\testTreeView.csproj.FileListAbsolute.txt
..........\............\Program.cs
..........\............\Properties
..........\............\..........\AssemblyInfo.cs
..........\............\..........\Resources.Designer.cs
..........\............\..........\Resources.resx
..........\............\..........\Settings.Designer.cs
..........\............\..........\Settings.settings
..........\............\testTreeView.csproj
..........\............\TreeViewEx.cs