winform中两个panel,一个splitter,动态添加button,画在splitter上面,随着splitter动而动,浮在经过的控件上面,见过这样子的,不知道怎么搞的?
解决方案 »
- 【菜鸟提问】大家看看这个软件界面如何设计的???
- C#用户添加??
- 高分救助 C#读取1G以上的大图
- 找了一段代码,请帮忙看看其中这个语句的作用是什么,想达到什么样的效果
- 如何读取SQL数据表中的空格符
- 怎样直接安装Windows服务?不进行安装程序。
- ====ASP.NET中session的timeout设置时间达到后和在配置文件中对Session_End使用session清空方法均不起作用的问题,高手帮忙====
- C#自定义控件的doubleclick事件问题
- 请教一个关于FTP的问题
- 数据库底层报错如何解决
- 成为一个C#程序员都应该做什么?
- 这已经是第二贴了,C#,webbrowser向网页输入框内赋值,请会的大哥能帮帮忙!网页源代码下下来了就是找不到输入框的id
{
Button btn1;
public Form1()
{
InitializeComponent();
btn1 = new Button();
btn1.Size = new Size(60, 27);
btn1.Text = "Test";
btn1.Location = new Point(this.splitter1.Left, 100);
this.Controls.Add(btn1); this.Controls.SetChildIndex(btn1, 0);
} private void splitter1_SplitterMoved(object sender, SplitterEventArgs e)
{
if(this.btn1!=null) this.btn1.Left = this.splitter1.Left;
}
}