<span style="font-size:18px;">private void button3_Click(object sender, EventArgs e)
{
textBox1.Text = "";
textBox2.Text = "";
}</span>
<span style="font-size:18px;">private void button2_Click(object sender, EventArgs e)
{
Close();
}</span>
<span style="font-size:18px;">using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsForms
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
string str = textBox1.Text;//获取你在textBox1中输入的信息
Form2 ad = new Form2(str);//创建一个学生信息管理系统主界面的对象
ad.Show();//点击确定后进入学生信息管理系统主界面
this.Hide();//单击确定后隐藏登录窗口
}
private void button2_Click(object sender, EventArgs e)
{
Application.Exit();//点击取消退出整个程序
}
private void button3_Click(object sender, EventArgs e)
{
textBox1.Text = "";//这是清空你写入的用户名称
textBox2.Text = "";//这是清空你写入的用户密码
}
}
}</span></span>
<span style="font-size:18px;"><span style="font-size:18px;">using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsForms
{
public partial class Form2 : Form
{
public Form2(string s)
{
InitializeComponent();
tssl_name.Text = s;//将登陆窗口textBox1输入的信息传递给状态栏Text属性
}
private void 退出ToolStripMenuItem_Click(object sender, EventArgs e)
{
Application.Exit();//单击主菜单中的退出我们退出整个程序
}
private void menuStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
{
}
private void toolStripButton1_Click(object sender, EventArgs e)
{
Children qq = new Children();//创建一个子窗体的实例
qq.MdiParent = this;//要求子窗体的父窗体是MDI窗体
qq.Show();
}
private void 学生信息ToolStripMenuItem_Click(object sender, EventArgs e)
{
Children1 c1 = new Children1();
c1.MdiParent = this;
c1.Show();
}
private void 用户信息ToolStripMenuItem_Click(object sender, EventArgs e)
{
Children2 c2 = new Children2();
c2.MdiParent = this;
c2.Show();
}
private void 用户密码修改ToolStripMenuItem_Click(object sender, EventArgs e)
{
Children3 c3 = new Children3();
c3.MdiParent = this;
c3.Show();
}
}
}</span>
<span style="font-size:18px;">using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsForms
{
public partial class Children1 : Form
{
public Children1()
{
InitializeComponent();
}
private void button2_Click(object sender, EventArgs e)
{
Close();
}
}
}</span>
<span style="font-size:18px;">using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsForms
{
public partial class Children2 : Form
{
public Children2()
{
InitializeComponent();
}
private void button2_Click(object sender, EventArgs e)
{
Close();
}
private void s(object sender, EventArgs e)
{
}
}
}</span>
<span style="font-size:18px;">using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsForms
{
public partial class Children3 : Form
{
public Children3()
{
InitializeComponent();
}
private void button2_Click(object sender, EventArgs e)
{
Close();
}
}
}</span>
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有