dotnetbar入门

1、下载dotnetbar组件

2、工具箱引用

3、项目引用

4、开始工作

//此处Form完整的名称是System.Windows.Forms.Form,表示FrmMain窗体类是继承于System.Windows.Forms.Form类
  public partial class FrmMain : Form
{
}

  修改后如下

    //此处Office2007Form完整的名称是DevComponents.DotNetBar.Office2007Form,表示FrmMain窗体类是继承于DevComponents.DotNetBar.Office2007Form类
public partial class FrmMain : Office2007Form
{
}

此时运行可能没有显示想要的效果,需要在构造函数里写一句代码:this.EnableGlass = false;

public Form1()
{
InitializeComponent();
this.EnableGlass = false;
}

此时运行就正常了,下面就想怎么布置就随便搞啦。

posted @ 2016-06-16 14:56  _海阔天空  阅读(240)  评论(0编辑  收藏  举报