树视图和拆分容器需要帮助 [英] Help needed with Tree view and split contaners

查看:121
本文介绍了树视图和拆分容器需要帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

只是想知道是否有人可以提供帮助.

我在VB中写作

我有1个表单(Form1.vb),其中包含一个SplitContainer1.panel2中的拆分容器(SplitContainer1).我有一个包含某些详细信息的treeView.我还有一个1用户控件表单,当我需要在SplitContainer1.panel2中显示该表单从树视图中选择.

似乎无法找到显示控件表单的代码.


请帮助

Hi all,

Just wondering if anyone can help.

I am writng in VB

I have 1 form (Form1.vb) which contains a split container (SplitContainer1) in SplitContainer1.panel2 I have a treeView with some detail in. I also have a 1 user control form and I need to display that in SplitContainer1.panel2 when I selct from the treeview.

Just cant seem to find the code to display the control form.


Please help

推荐答案

Dim frm as new myform
Frm.parent = splitcontainer1.panel2
Frm.show



如上面的基本示例所示,您需要在splittercontainet控件中将panel2的父表单设置为



As the basic example above shows you need to set the forms parent to the panel2 in the splittercontainet control


这篇关于树视图和拆分容器需要帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆