文件名称:TreeViewEx
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:65.23kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
一个WinForm的TreeView,某node的CheckBox初始状态为false,当双击这个node的checkbox时,会出现很奇怪的情况:
第一次双击checkbox,checkbox显示的状态会切换两次状态,unchecked-> checked-> unchecked,而AfterCheck事件仅触发一次,在AfterCheck事件中获取到的checkbox状态为checked。在这里checkbox状态已经和显示状态不一致了
以后每次双击,checkbox显示的状态会出现一次切换,AfterCheck也会触发一次,并且checkbox显示的状态和值的状态仍然保持相反。
除上面这个问题外,还有一点,当双击treeview 的checkbox后,如果再去单击或双击该界面中除这个treeview外的任何部分,系统会忽略第一次点击事件。举例来说,一个窗口中,有一个treeview,还有一个ok按钮,当我双击这个treeview的一个checkbox后,再去点那个ok按钮,第一次点击是没有任何作用的,第二次以及以后的点击才会有效,包括点击最大化,最小化,以及关闭这种系统按钮。 为了解决以上问题,我重写了TreeView控件,在不影响其它地方的前提下,能很好的解决以上问题。我的环境:.Net framework4.0 + VS2005 + Win7 编译通过,并付执行程序。-
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,
第一次双击checkbox,checkbox显示的状态会切换两次状态,unchecked-> checked-> unchecked,而AfterCheck事件仅触发一次,在AfterCheck事件中获取到的checkbox状态为checked。在这里checkbox状态已经和显示状态不一致了
以后每次双击,checkbox显示的状态会出现一次切换,AfterCheck也会触发一次,并且checkbox显示的状态和值的状态仍然保持相反。
除上面这个问题外,还有一点,当双击treeview 的checkbox后,如果再去单击或双击该界面中除这个treeview外的任何部分,系统会忽略第一次点击事件。举例来说,一个窗口中,有一个treeview,还有一个ok按钮,当我双击这个treeview的一个checkbox后,再去点那个ok按钮,第一次点击是没有任何作用的,第二次以及以后的点击才会有效,包括点击最大化,最小化,以及关闭这种系统按钮。 为了解决以上问题,我重写了TreeView控件,在不影响其它地方的前提下,能很好的解决以上问题。我的环境:.Net framework4.0 + VS2005 + Win7 编译通过,并付执行程序。-
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,
(系统自动生成,下载前可以参看下载内容)
下载文件列表
TreeViewEx/
TreeViewEx/testTreeView/
TreeViewEx/testTreeView.sln
TreeViewEx/testTreeView.suo
TreeViewEx/testTreeView/bin/
TreeViewEx/testTreeView/bin/Debug/
TreeViewEx/testTreeView/bin/Debug/testTreeView.exe
TreeViewEx/testTreeView/bin/Debug/testTreeView.pdb
TreeViewEx/testTreeView/bin/Debug/testTreeView.vshost.exe
TreeViewEx/testTreeView/bin/Release/
TreeViewEx/testTreeView/bin/Release/testTreeView.exe
TreeViewEx/testTreeView/bin/Release/testTreeView.pdb
TreeViewEx/testTreeView/bin/Release/testTreeView.vshost.exe
TreeViewEx/testTreeView/Form1.cs
TreeViewEx/testTreeView/Form1.Designer.cs
TreeViewEx/testTreeView/Form1.resx
TreeViewEx/testTreeView/obj/
TreeViewEx/testTreeView/obj/Debug/
TreeViewEx/testTreeView/obj/Debug/TempPE/
TreeViewEx/testTreeView/obj/Debug/testTreeView.csproj.GenerateResource.Cache
TreeViewEx/testTreeView/obj/Debug/testTreeView.exe
TreeViewEx/testTreeView/obj/Debug/testTreeView.Form1.resources
TreeViewEx/testTreeView/obj/Debug/testTreeView.pdb
TreeViewEx/testTreeView/obj/Debug/testTreeView.Properties.Resources.resources
TreeViewEx/testTreeView/obj/Release/
TreeViewEx/testTreeView/obj/Release/TempPE/
TreeViewEx/testTreeView/obj/Release/testTreeView.csproj.GenerateResource.Cache
TreeViewEx/testTreeView/obj/Release/testTreeView.exe
TreeViewEx/testTreeView/obj/Release/testTreeView.Form1.resources
TreeViewEx/testTreeView/obj/Release/testTreeView.pdb
TreeViewEx/testTreeView/obj/Release/testTreeView.Properties.Resources.resources
TreeViewEx/testTreeView/obj/testTreeView.csproj.FileListAbsolute.txt
TreeViewEx/testTreeView/Program.cs
TreeViewEx/testTreeView/Properties/
TreeViewEx/testTreeView/Properties/AssemblyInfo.cs
TreeViewEx/testTreeView/Properties/Resources.Designer.cs
TreeViewEx/testTreeView/Properties/Resources.resx
TreeViewEx/testTreeView/Properties/Settings.Designer.cs
TreeViewEx/testTreeView/Properties/Settings.settings
TreeViewEx/testTreeView/testTreeView.csproj
TreeViewEx/testTreeView/TreeViewEx.cs
TreeViewEx/testTreeView/
TreeViewEx/testTreeView.sln
TreeViewEx/testTreeView.suo
TreeViewEx/testTreeView/bin/
TreeViewEx/testTreeView/bin/Debug/
TreeViewEx/testTreeView/bin/Debug/testTreeView.exe
TreeViewEx/testTreeView/bin/Debug/testTreeView.pdb
TreeViewEx/testTreeView/bin/Debug/testTreeView.vshost.exe
TreeViewEx/testTreeView/bin/Release/
TreeViewEx/testTreeView/bin/Release/testTreeView.exe
TreeViewEx/testTreeView/bin/Release/testTreeView.pdb
TreeViewEx/testTreeView/bin/Release/testTreeView.vshost.exe
TreeViewEx/testTreeView/Form1.cs
TreeViewEx/testTreeView/Form1.Designer.cs
TreeViewEx/testTreeView/Form1.resx
TreeViewEx/testTreeView/obj/
TreeViewEx/testTreeView/obj/Debug/
TreeViewEx/testTreeView/obj/Debug/TempPE/
TreeViewEx/testTreeView/obj/Debug/testTreeView.csproj.GenerateResource.Cache
TreeViewEx/testTreeView/obj/Debug/testTreeView.exe
TreeViewEx/testTreeView/obj/Debug/testTreeView.Form1.resources
TreeViewEx/testTreeView/obj/Debug/testTreeView.pdb
TreeViewEx/testTreeView/obj/Debug/testTreeView.Properties.Resources.resources
TreeViewEx/testTreeView/obj/Release/
TreeViewEx/testTreeView/obj/Release/TempPE/
TreeViewEx/testTreeView/obj/Release/testTreeView.csproj.GenerateResource.Cache
TreeViewEx/testTreeView/obj/Release/testTreeView.exe
TreeViewEx/testTreeView/obj/Release/testTreeView.Form1.resources
TreeViewEx/testTreeView/obj/Release/testTreeView.pdb
TreeViewEx/testTreeView/obj/Release/testTreeView.Properties.Resources.resources
TreeViewEx/testTreeView/obj/testTreeView.csproj.FileListAbsolute.txt
TreeViewEx/testTreeView/Program.cs
TreeViewEx/testTreeView/Properties/
TreeViewEx/testTreeView/Properties/AssemblyInfo.cs
TreeViewEx/testTreeView/Properties/Resources.Designer.cs
TreeViewEx/testTreeView/Properties/Resources.resx
TreeViewEx/testTreeView/Properties/Settings.Designer.cs
TreeViewEx/testTreeView/Properties/Settings.settings
TreeViewEx/testTreeView/testTreeView.csproj
TreeViewEx/testTreeView/TreeViewEx.cs
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.