PowerTools PlusPak for Windows Forms 8.0J
Form プロパティ (GcResizeAttachingEventArgs)
使用例 

GcResize コンポーネントがアタッチされる System.Windows.Forms.Form を取得します。
構文
Public ReadOnly Property Form As Form
public Form Form {get;}

プロパティ値

GcResize コンポーネントがアタッチされる System.Windows.Forms.Form
使用例

次のサンプルコードは、このプロパティの使用方法を示します。

このサンプルコードは、GcApplicationResize クラスに示されている詳細なコード例の一部を抜粋したものです。

void _gcApplicationResize_GcResizeAttaching(object sender, GcResizeAttachingEventArgs e)
{
    // May be some forms should not be Resize.
    if (e.Form is NormalForm)
    {
        e.Cancel = true;
    }
}
Private Sub _gcApplicationResize_GcResizeAttaching(sender As Object, e As GcResizeAttachingEventArgs)
    ' May be some forms should not be Resize.
    If TypeOf e.Form Is NormalForm Then
        e.Cancel = True
    End If
End Sub
プラットフォーム

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

参照

GcResizeAttachingEventArgs クラス
GcResizeAttachingEventArgs メンバ

Send Feedback