?? 窗體的可視繼承.txt
字號:
設計繼承而來窗口,把基類修改為默認的System.Windows.Forms.Form
生成工程是,修改為原來基類。
可以通過宏來簡化修改基類。
// #define FORM_DESIGN
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace FormsCollection
{
/// <summary>
/// Summary description for FormPrecipitation.
/// </summary>
#if (FORM_DESIGN)
public class FormPrecipitation : System.Windows.Forms.Form
#else
public class FormPrecipitation : WeatherGage.FormGage
#endif
{
public FormPrecipitation()
{
但是基類的菜單、與工具欄不會被繼承的
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -