动态实例化第三方控件

来源:互联网 发布:c语言打开文件方式 编辑:程序博客网 时间:2024/06/04 17:58
            DevComponents.DotNetBar.ButtonX xx = new DevComponents.DotNetBar.ButtonX();
            xx.ColorTable = DevComponents.DotNetBar.eButtonColor.BlueWithBackground;
            xx.Size = new System.Drawing.Size(194, 51);           //必须初始化控件大小,否则不好使
            xx.Location = new Point(61, 41);
            this.Controls.Add(xx);
0 0
原创粉丝点击