Button b = (Button)_host.CreateComponent(typeof(Button),"控件名称");// 创建组件
// Set the Parent of this Button to the RootComponent (the Form)
b.Text="Button1";
b.Parent = (Form)_host.RootComponent;
UpdateComboBox();
SharpDevelop 动态添加控件
最新推荐文章于 2023-05-30 16:14:33 发布