我如何在一个带有一些conrols的表单上移动和命令控件。 [英] how i shift and order controls on a form with some conrols.

查看:48
本文介绍了我如何在一个带有一些conrols的表单上移动和命令控件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友

抱歉英语不好。

1 - 这是我的问题:我有一个如下用户控件。

< a href =http://upload.tehran98.com/viewer.php?file=bv67egrfbg661ti1goo5.jpg>< img src =http://upload.tehran98.com/img1/bv67egrfbg661ti1goo5_thumb.jpgborder = 0alt =bv67egrfbg661ti1goo5.jpg/>

http://upload.tehran98.com/img1/bv67egrfbg661ti1goo5.jpg



有一些textbox-combox-lable-button等等。

2 -i有一个这样的表格,它是一个添加按钮和面板控件。

i想在我点击下面的添加按钮时在表单中添加相同的用户控件。



< img src =http://upload.tehran98.com/img1/hip0ihejx3zdobo2f1zi_thumb.jpg\"border =0alt =hip0ihejx3zdobo2f1zi.jpg/> ;

和这样。

------------------------- ------------------------------------------- -------------

< img src =http://upload.tehran98.com/img1/98szs4wgijzook4v9v_thumb.jpgborder =0alt =98szs4wgijzook4v9v.jpg/>

---- -------------------------------------------------- ------------------------------

当我再次点击时 - 添加另一个用户控制权那个。

等等。

i希望当我点击添加按钮时,另一个用户控件添加到最上面的。

i想要那个我点击关闭按钮,隐藏在窗体中间的用户控件和

其他用户转换为up并按此订购。



< img src =http://upload.tehran98.com/img1/rzqknaj346vctjzvyo_thumb.jpgborder =0alt =rzqknaj346vctjzvyo.jpg/>

http://upload.tehran98.com/img1/rzqknaj346vctjzvyo.jpg

< br / >
我该怎么做。

请帮助我。

hello friends
sorry for poor english.
1-this is my question: i have a user control like below.
<img src="http://upload.tehran98.com/img1/bv67egrfbg661ti1goo5_thumb.jpg" border="0" alt="bv67egrfbg661ti1goo5.jpg" />
http://upload.tehran98.com/img1/bv67egrfbg661ti1goo5.jpg

there is some textbox-combox-lable-button and so on.
2-i have a form like this that threre is a add button and panel control into it.
i want to add the same user control in form when i click add button like below.

<img src="http://upload.tehran98.com/img1/hip0ihejx3zdobo2f1zi_thumb.jpg" border="0" alt="hip0ihejx3zdobo2f1zi.jpg" />
and like this.
---------------------------------------------------------------------------------
<img src="http://upload.tehran98.com/img1/98szs4wgijzook4v9v_thumb.jpg" border="0" alt="98szs4wgijzook4v9v.jpg" />
------------------------------------------------------------------------------------
and when i click again -add a another usercontrol righte under that one.
and so on.
i want that when i click add button another user control add to uppermost of them.
i want that when i click on close button a usercontrol in middle of form that be hidden and
other user conrols shift to up and be ordered like this.

<img src="http://upload.tehran98.com/img1/rzqknaj346vctjzvyo_thumb.jpg" border="0" alt="rzqknaj346vctjzvyo.jpg" />
http://upload.tehran98.com/img1/rzqknaj346vctjzvyo.jpg

how can i do that .
pls help me.

推荐答案

使用FLowLayOutPanel。在此面板中添加控件。

您可以获得自动滚动选项和许多其他功能。

请务必阅读面板的Msdn部分。
Use FLowLayOutPanel. Add controls into this panel.
You an get automatic scroll options and many other functionality.
Be sure to read the Msdn section of the panel.


这篇关于我如何在一个带有一些conrols的表单上移动和命令控件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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