zoukankan
html css js c++ java
默认选中TreeView某个节点的方法
/**/
///
<summary>
///
选中treeview的某个节点,需要每个node的value不同
///
</summary>
///
<param name="sNodeValue"></param>
private
void
checkNode(TreeView tv,
string
sNodeValue)
{
foreach
(TreeNode tRoot
in
tv.Nodes)
{
if
(tRoot.Value
==
sNodeValue)
{
tRoot.Select();
}
else
{
if
(tRoot.ChildNodes
!=
null
)
{
foreach
(TreeNode tChild
in
tRoot.ChildNodes)
{
if
(tChild.Value
==
sNodeValue)
tChild.Select();
}
}
}
}
}
查看全文
相关阅读:
Project项目视图
Console(控制台视图)
Layout布局列表
Layers层列表
帐户下拉
TransformGizmo(变换)切换
Play播放控件
变换工具
工具栏
Help帮助
原文地址:https://www.cnblogs.com/vagerent/p/840512.html
最新文章
Python+Selenium+Unittest实现PO模式web自动化框架(1)
selenium浏览器弹出框alert 操作
通过封装openpyxl模块实现自己的Excel操作类
(16)-Python3之--自定义logging日志模块
Python+unittest框架
(15)-Python3之--configparser模块
Oracle-跑批缓慢之GC等待
Oracle-"log file sync"等待分析
蓝鲸智云-配置邮件通知渠道
Oracle 12.2 或更高版本的PDB级别创建AWR报告
热门文章
Oracle 18C新特性:内联外部表
Oracle 18C中DBMS_SESSION.SLEEP和DBMS_LOCK.SLEEP推荐使用那个?
Oracle 18C新特性:ALTER SYSTEM CANCEL SQL
Mysqldump参数大全(参数来源于mysql5.5.19源码)
mysql自定义命令行提示prompt
应用程序链接不上数据库,密码过期?
搜索资源商店
搜索
Create创建资源文件
收藏文件夹
Copyright © 2011-2022 走看看