菜单,如窗口浏览器 [英] menu like window explorer
本文介绍了菜单,如窗口浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想显示类似于窗口浏览器的菜单.
我有一种形式,左侧是树状视图,右侧是列表视图.我现在想像窗口浏览器一样单击树时,要在列表视图中显示树节点.问题.听起来您应该执行以下操作:
使用菜单栏创建文件"菜单.
使用拆分容器从左侧/右侧拆分屏幕.
使用左侧的树视图控件.使用右侧的列表视图.
您有什么问题?
listView1.Items.Clear();
foreach(e.Node.Nodes中的TreeNode节点)
{
listView1.Items.Add(node.Text);
}
I want to display menu like window explorer.
I have one form left side i have tree view and right side i have list view. i want to display tree node at list view when i click at tree now like window explorer.
解决方案
You have made several statements, but you haven''t asked a question. Sounds like you should do something like this:
Use a menu strip to make a File menu.
Use a split container to split the screen with a left side/right side.
Use a tree view control on the left. Use a list view on the right.
What are you having trouble with?
listView1.Items.Clear();
foreach (TreeNode node in e.Node.Nodes)
{
listView1.Items.Add(node.Text);
}
这篇关于菜单,如窗口浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文