资源简介
窗体左右分割,单击左边树节点,右边加载相对应的窗体
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication1
{
public partial class Form1 : Form
{
private UserControl1 uc1;
private UserControl2 uc2;
private UserControl3 uc3;
public Form1()
{
InitializeComponent();
uc1 = new UserControl1();
uc2 = new UserControl2();
uc3 = new UserControl3();
}
private void treeView1_AfterSelect(object sender TreeViewEventArgs e)
{
this.splitContainer1.Panel2.Controls.Clear();
switch (this.treeView1.SelectedNode.Text)
{
case “用户界面1“:
this.splitContainer1.Panel2.Controls.Add(uc1);
break;
case “用户界面2“:
this.splitContainer1.Panel2.Controls.Add(uc2);
break;
case “用户界面3“:
this.splitContainer1.Panel2.Controls.Add(uc3);
break;
default:
break;
}
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 5612 2008-12-02 22:01 WindowsApplication1\WindowsApplication1\Properties\Resources.resx
文件 249 2008-12-02 22:01 WindowsApplication1\WindowsApplication1\Properties\Settings.settings
文件 1186 2008-12-02 22:01 WindowsApplication1\WindowsApplication1\Properties\AssemblyInfo.cs
文件 2894 2008-12-02 22:01 WindowsApplication1\WindowsApplication1\Properties\Resources.Designer.cs
文件 1104 2008-12-02 22:01 WindowsApplication1\WindowsApplication1\Properties\Settings.Designer.cs
目录 0 2008-12-02 22:01 WindowsApplication1\WindowsApplication1\Properties
文件 5814 2008-12-02 22:08 WindowsApplication1\WindowsApplication1\UserControl1.resx
文件 5814 2008-12-02 22:09 WindowsApplication1\WindowsApplication1\Form1.resx
文件 4388 2008-12-02 22:08 WindowsApplication1\WindowsApplication1\WindowsApplication1.csproj
文件 5632 2005-11-11 22:25 WindowsApplication1\WindowsApplication1\bin\Debug\WindowsApplication1.vshost.exe
文件 24576 2008-12-02 22:14 WindowsApplication1\WindowsApplication1\bin\Debug\WindowsApplication1.exe
文件 40448 2008-12-02 22:14 WindowsApplication1\WindowsApplication1\bin\Debug\WindowsApplication1.pdb
目录 0 2008-12-02 22:01 WindowsApplication1\WindowsApplication1\bin\Debug
目录 0 2008-12-02 22:01 WindowsApplication1\WindowsApplication1\bin
目录 0 2008-12-02 22:01 WindowsApplication1\WindowsApplication1\obj\Debug\TempPE
文件 180 2008-12-02 22:09 WindowsApplication1\WindowsApplication1\obj\Debug\WindowsApplication1.Form1.resources
文件 180 2008-12-02 22:09 WindowsApplication1\WindowsApplication1\obj\Debug\WindowsApplication1.Properties.Resources.resources
文件 180 2008-12-02 22:09 WindowsApplication1\WindowsApplication1\obj\Debug\WindowsApplication1.UserControl1.resources
文件 180 2008-12-02 22:14 WindowsApplication1\WindowsApplication1\obj\Debug\WindowsApplication1.UserControl2.resources
文件 180 2008-12-02 22:09 WindowsApplication1\WindowsApplication1\obj\Debug\WindowsApplication1.UserControl3.resources
文件 40448 2008-12-02 22:14 WindowsApplication1\WindowsApplication1\obj\Debug\WindowsApplication1.pdb
文件 24576 2008-12-02 22:14 WindowsApplication1\WindowsApplication1\obj\Debug\WindowsApplication1.exe
文件 1037 2008-12-02 22:14 WindowsApplication1\WindowsApplication1\obj\Debug\WindowsApplication1.csproj.GenerateResource.Cache
目录 0 2008-12-02 22:01 WindowsApplication1\WindowsApplication1\obj\Debug
文件 1361 2008-12-02 22:14 WindowsApplication1\WindowsApplication1\obj\WindowsApplication1.csproj.FileListAbsolute.txt
目录 0 2008-12-02 22:01 WindowsApplication1\WindowsApplication1\obj
文件 367 2008-12-02 22:14 WindowsApplication1\WindowsApplication1\UserControl2.cs
文件 1939 2008-12-02 22:14 WindowsApplication1\WindowsApplication1\UserControl2.Designer.cs
文件 5814 2008-12-02 22:14 WindowsApplication1\WindowsApplication1\UserControl2.resx
文件 367 2008-12-02 22:08 WindowsApplication1\WindowsApplication1\UserControl3.cs
............此处省略14个文件信息
相关资源
- VirtualTreeview 最新版支持 XE10.3
- 树形下拉框控件源码 TreeView In Combo
-
WTLTreeViewxm
l - QML树控件TreeView的使用
- 自绘树形控件
- aceadmin1.4已改造treeview多选完整版
- QML TreeView 自定义样式加上节点可拖动
- QTreeView 使用自定义Model
- LibraryTreeView
- pb8动态创建树和菜单,pb遍历生成菜单
-
TreeView&xm
l递归实现无限分级 - Qt5 qml TreeView 迄今为止功能最全的树控
- 使用treeview listview实现我的资源管理器
- 以文件方式保存和恢复treeview(7KB)
- TreeView加载省市数据库
- TreeView和ListView控件联动事例
- 资源管理器
- 获取外部程序TreeView或ListView的值
-
实现读取xm
l文件并在treeview上显示并 - unity树状图插件TreeView
- QTreeView实现节点拖动.zip
- 获取Ftp目录树并绑定到treeview
- listview水平滚动条 多级动态异步加载
- Unity UGUI自定义树形菜单TreeViewGitHub配
- delphi treeview 加载时 改变字体颜色
- 最新版U3D TreeView.unitypackage
- 实现TreeView和ListView合体效果的控件
- Virtualizing Tree View - 自购稀缺Unity资源
- Duilib中的可拖放节点的树实现
- usbtreeview.zip
评论
共有 条评论