想把这个系统软件的后台操作分成三个部分!上面就是界面的导航                    左面是treeview 的管理            右边就是点击treeview节点是显示数据!请高手指点!

解决方案 »

  1.   

    ToolStrip,Dock设置为Top
    下面放一个SplitContainer,Dock为Fill
    左边TreeView,右边ListView/GridView,Dock都是Fill
      

  2.   

    还有当我关闭程序时跳出一个“是”“否”的messbox窗体
      

  3.   

    MessageBox.Show("是否关闭!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
      

  4.   


            function openHTML(url){
     parent.I2.location.href=url;
     }
              
            <table width="95%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td height="20" style="cursor:hand" onmouseover="this.style.borderStyle='solid';this.style.borderWidth='1';borderColor='#7bc4d3'; "onmouseout="this.style.borderStyle='none'" onclick="openHTML('URl')"><span class="STYLE3">XXX</span></td>
                            </tr>
                        </table>
      

  5.   

    就是这个版面但是我想把窗体show到右边那个Panle里面
      

  6.   

     private void btnConfirm_Click(object sender, EventArgs e)
            {
                BLL.EmployeeInfo el = new BLL.EmployeeInfo();
                bool blState = el.SelectEmployee();
                if (blState)
                {
                    if (rbOne.Checked)
                    {
                        intLoginState = 1;
                        //MessageBox.Show(intLoginState.ToString());
                        blState = el.UpdateEmpState(intLoginState);
                        if (blState)
                        {
                            MessageBox.Show("设置成功!");
                        }
                        else
                        {
                            MessageBox.Show("请先设置密码");
                        }
                    }
                    else
                    {
                        intLoginState = 2;
                        //MessageBox.Show(intLoginState.ToString());
                        blState = el.UpdateEmpState(intLoginState);
                        if (blState)
                        {
                            MessageBox.Show("设置成功!");
                        }
                        else
                        {
                            MessageBox.Show("请先设置密码");
                        }
                    }
                }
                else 
                {
                    MessageBox.Show("请先设置账号密码!");
                }
            }        private void btnUpdatePassword_Click(object sender, EventArgs e)
            {
                BLL.EmployeeInfo el = new BLL.EmployeeInfo();
                bool blState = el.SelectEmployee();
                if (blState)
                {
                    sp_updatePassword sp = new sp_updatePassword();
                    sp.ShowDialog();
                }
                else
                {
                    MessageBox.Show("请先设置密码!");
                }        }
        }
    }
      

  7.   

       public void Buy(TextBox txt)
            {
                double dblInprice = 0;
                bool blState = double.TryParse(txt.Text.Trim(), out dblInprice);
                if (blState)
                {
                    if (dblInprice < dblMoney * intList_count)
                    {
                        MessageBox.Show("应收额应大于或等于实收额");
                    }
                    else
                    {
                        Dal.BuyList buyList = new Dal.BuyList();
                        Dal.ListInfo listInfo = new Dal.ListInfo();
                        DataTable dt = listInfo.SelectListNo();
                        intList_no = Convert.ToInt32(dt.Rows[0][0]);
                        dt = new DataTable();
                        dt = buyList.UpdateBuyList(intList_no, dblMoney * intList_count, dblInprice, dblInprice - (dblMoney * intList_count));
                        sp_buyConfirm sp = new sp_buyConfirm(Convert.ToDouble(dt.Rows[0][2]), Convert.ToDouble(dt.Rows[0][3]), Convert.ToDouble(dt.Rows[0][4]));
                        sp.ShowDialog();
                        buyList.InsertSecondBuyList();
                        dblMoney = 0;
                        intSecond_list_no = 1;
                        tcbuy.Visible = false;
                        txtprice.Text = "";
                        txtacceptmoney.Text = "";
                        rtbList.Clear();
                        rtbGoodsInfos.Clear();
                        txtgno.Clear();
                        txtGoodsName.Clear();
                        txtUnitPrice.Clear();
                        txtCount.Clear();
                        //dgvBuy.Columns.Clear();
                        Dal.ListInfo Sli = new Dal.ListInfo();
                        dt = new DataTable();
                        dt = Sli.SelectLastList_info();
                        dgvBuy.DataSource = dt;
                    }
                }
                else
                {
                    MessageBox.Show("实收额输入格式有误!");
                }
            }
      

  8.   

    网上有一个叫做 OK3W的新闻发布系统,是ASP做的,我用过,不错,也符合你的要求,建议你下载用用。
      

  9.   

    上面是我先前写的超市管理系统!那个版面是一个一个Show出来的,这次想把小页面放在大窗体里面!
      

  10.   

            private void tsmisellInfo_Click(object sender, EventArgs e)
            {
                sp_sellinfo sp = new sp_sellinfo();
                sp.ShowDialog();
                LoadInfo();
            }