就是图书管理系统 想把这个系统软件的后台操作分成三个部分!上面就是界面的导航 左面是treeview 的管理 右边就是点击treeview节点是显示数据!请高手指点! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 ToolStrip,Dock设置为Top下面放一个SplitContainer,Dock为Fill左边TreeView,右边ListView/GridView,Dock都是Fill 还有当我关闭程序时跳出一个“是”“否”的messbox窗体 MessageBox.Show("是否关闭!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); 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> 就是这个版面但是我想把窗体show到右边那个Panle里面 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("请先设置密码!"); } } }} 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("实收额输入格式有误!"); } } 网上有一个叫做 OK3W的新闻发布系统,是ASP做的,我用过,不错,也符合你的要求,建议你下载用用。 上面是我先前写的超市管理系统!那个版面是一个一个Show出来的,这次想把小页面放在大窗体里面! private void tsmisellInfo_Click(object sender, EventArgs e) { sp_sellinfo sp = new sp_sellinfo(); sp.ShowDialog(); LoadInfo(); } 小菜急用 .net c#开发的window应用程序,如何使其只运行一个 高手们紧急求救! mediaplayer中如何设置视频循环播放? 身份验证 如何关闭已经打开的端口?System.Net.Sockets.SocketException: 通常每个套接字地址 (协议/网络地址/端口) 只允许使用一次 请教 App.config 的详细使用方法 VS2005使用中遇到一点很奇怪的问题 在Web From 中怎樣實現彈出一個對話框﹐并且可傳回參數。好急啊。 新手的问题. C# UserControl 程序找不到使用 EXEC sp_executesql @SQL 返回的结果集
下面放一个SplitContainer,Dock为Fill
左边TreeView,右边ListView/GridView,Dock都是Fill
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>
{
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("请先设置密码!");
} }
}
}
{
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("实收额输入格式有误!");
}
}
{
sp_sellinfo sp = new sp_sellinfo();
sp.ShowDialog();
LoadInfo();
}