⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmshown.cs

📁 Microsoft Mobile Development Handbook的代码,有C#,VB,C++的
💻 CS
字号:
using System;
using System.Windows.Forms;
using System.Diagnostics;
using System.ComponentModel;

namespace CodeForChapter2
{
  public partial class frmShown : Form
  {
    public frmShown()
    {
      InitializeComponent();
    }

    private void frmShown_Closing(object sender, CancelEventArgs e)
    {
      // when this form is closed
      // via Ok or via Close method call
      Debug.WriteLine("Closing");
    }

    private void frmShown_Deactivate(object sender, EventArgs e)
    {
      // when this form goes to the background
      // (closed, smart minimised or otherwise)
      Debug.WriteLine("Deactivate");
    }

    private void menuItem1_Click(object sender, EventArgs e)
    {
      // Same as clicking on OK button
      // If form only has an X, this still closes the form as if it had an OK
      this.Close();
    }
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -