C# ToolStrip 控件的动态生成

来源:互联网 发布:超级淘宝系txt下载 编辑:程序博客网 时间:2024/04/30 05:17


<span style="font-size:18px;">            ToolStrip toolStrip = new ToolStrip();            toolStrip.Location = new System .Drawing.Point(e.Location.X-100,e.Location.Y);            toolStrip.Width = 100;            toolStrip.Height = 30;            toolStrip.BackColor = Color.Yellow;            toolStrip.Dock = DockStyle.None;            toolStrip.Click += toolStrip_Click;            this.Controls.Add(toolStrip);</span>

0 0
原创粉丝点击