Exemplo n.º 1
0
        private void ManageDB_Load(object sender, EventArgs e)
        {
            //隐藏bar
            this.panel3.Visible = false;
            //初始化dataGridView1不显示
            dataGridView1.Visible = false;
            treeView1.LabelEdit   = false;//不可编辑状态。
            //添加一个节点,这个结点是根节点。
            TreeNode node = new TreeNode();

            node.Text = "未连接数据库";
            treeView1.Nodes.Add(node);
            //不允许用户直接在最下面的行添加新行
            dataGridView1.AllowUserToAddRows = false;
            //不允许用户直接按Delete键删除行
            dataGridView1.AllowUserToDeleteRows = false;
            about ab = new about();

            ab.ShowDialog();
        }
Exemplo n.º 2
0
        private void ToolStripButton6_Click(object sender, EventArgs e)
        {
            about ab = new about();

            ab.ShowDialog();
        }