ch9_demoform003.cs
来自「章立民-visual stadio 2005 c#编程技巧」· CS 代码 · 共 60 行
CS
60 行
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace CH9
{
public partial class CH9_DemoForm003 : Form
{
public CH9_DemoForm003()
{
InitializeComponent();
}
private void CH5_DemoForm003_Load(object sender, EventArgs e)
{
this.MenuStrip1.Visible = true;
this.MenuStrip2.Visible = false;
this.MenuStrip3.Visible = false;
}
private void RadioButton1_CheckedChanged(object sender, EventArgs e)
{
if (RadioButton1.Checked)
{
this.MenuStrip1.Visible = true;
this.MenuStrip2.Visible = false;
this.MenuStrip3.Visible = false;
}
}
private void RadioButton2_CheckedChanged(object sender, EventArgs e)
{
if (RadioButton2.Checked)
{
this.MenuStrip1.Visible = false;
this.MenuStrip2.Visible = true;
this.MenuStrip3.Visible = false;
}
}
private void RadioButton3_CheckedChanged(object sender, EventArgs e)
{
if (RadioButton3.Checked)
{
this.MenuStrip1.Visible = false;
this.MenuStrip2.Visible = false;
this.MenuStrip3.Visible = true;
}
}
private void tsmiExitForm_Click(object sender, EventArgs e)
{
this.Close();
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?