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;
}

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

原文地址:https://www.cnblogs.com/zkwarrior/p/5590992.html