如何用子窗口做登陆界面,一子窗口调用另一子窗口??? 想做个子窗口做登陆软件~~但不会一子窗口调用另一子窗口~~~请高手指教~~~~详细一点 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Fome2 f2 = new Fome2();f2.open(); 写错了Form2 f2 = new Form2();f2.Show();//Form2是要打开的窗体 要调用的窗体Form2 frm=new Form2();frm.show();this.close() using System;using System.Collections.Generic;using System.Windows.Forms;namespace TyreManage{ static class Program { /// <summary> /// 应用程序的主入口点。 /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); FormLogin lf = new FormLogin(); lf.ShowDialog(); if (lf.DialogResult.Equals(DialogResult.OK)) { Application.Run(new FormTyreManageMain(lf.UseName, lf.UsePassword)); } } }} 是CS的把,放2个panel 一个放登陆的 一个放子窗体的用显示和隐藏来实现private void btnLogin_Click(object sender, System.EventArgs e) { //登陆代码 this.panel1.Visible=false; this.panel2.Visible=true; } private void Form1_Load(object sender, System.EventArgs e) { this.panel2.Visible = false; }如果是BS的就换成DIV,方法一样 private void Form1_Load(object sender, EventArgs e) { this.Controls.Clear(); Form2 frm2 = new Form2(); frm2.TopLevel=false; this.Controls.Add(frm2); frm2.Show(); } private void button1_Click(object sender, EventArgs e) { Form3 frm3 = new Form3(); frm3.Show(); }这个button在from2中 这道题目答案是什么? c#怎么获取外部程序句柄并发送单击消息 了解一下,咨询高手,散个分,怎样手机短信操作.net平台 关于连接串加密 请问空格的表示符是什么(我指的不是" "),谢谢 无法调试的问题 大家看看吧,支持一下.NET的发展 急用,请各位大哥指导哈! VS2010中chart 怎么设置滚动条初始位置 DataGrid1更新数据的问题 C#新手问题,有关语法的 求高手解答,麻烦各位朋友了
f2.open();
Form2 f2 = new Form2();
f2.Show();//Form2是要打开的窗体
Form2 frm=new Form2();
frm.show();
this.close()
using System.Collections.Generic;
using System.Windows.Forms;namespace TyreManage
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false); FormLogin lf = new FormLogin();
lf.ShowDialog();
if (lf.DialogResult.Equals(DialogResult.OK))
{
Application.Run(new FormTyreManageMain(lf.UseName, lf.UsePassword));
}
}
}
}
{
//登陆代码
this.panel1.Visible=false;
this.panel2.Visible=true;
} private void Form1_Load(object sender, System.EventArgs e)
{
this.panel2.Visible = false;
}如果是BS的就换成DIV,方法一样
{
this.Controls.Clear();
Form2 frm2 = new Form2();
frm2.TopLevel=false;
this.Controls.Add(frm2);
frm2.Show();
}
{
Form3 frm3 = new Form3();
frm3.Show();
}
这个button在from2中