2017-05-24 2 views
1

Form1はFormから継承します。 Formのコードを見たいのですが、ファイルが見つかりません。それはどこにある ?Formクラスはどこですか?

public partial class Form1 : Form 
{ 
    public Form1() 
    { 
     InitializeComponent(); 
    } 
} 
+2

これはSystem.Windows.Formsアセンブリ内にあります...右クリックして定義に移動し、そのメタデータを確認します。 –

+0

Formクラスはフレームワークの一部です。そのコードを見るのに最適な場所は[参照元](https://referencesource.microsoft.com/#System.Windows.Forms/winforms/Managed/System/WinForms/Form.cs,8da76aa8c28acff7)です。 –

答えて

0

フォームを選択し、表示されますそのメタデータの後にF12

をクリックすると上にあなたはそれが取られていますどのDLLから見ることができます:ここでSystem.Windows.Forms.Formクラスへの直接リンクはあり

#region Assembly System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 
// C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Windows.Forms.dll 
#endregion 

using System.ComponentModel; 
using System.ComponentModel.Design; 
using System.Drawing; 
using System.Runtime.InteropServices; 

namespace System.Windows.Forms 
{ 
    ... 
} 
関連する問題