PowerTools PlusPak for Windows Forms 8.0J
GcResizeAttached イベント
使用例 

GcResize コンポーネントが System.Windows.Forms.Form にアタッチされたときに発生します。
構文
イベント データ

イベント ハンドラが、このイベントに関連するデータを含む、GcResizeAttachedEventArgs 型の引数を受け取りました。次の GcResizeAttachedEventArgs プロパティには、このイベントの固有の情報が記載されます。

プロパティ解説
FormGcResize コンポーネントがアタッチされた System.Windows.Forms.Form を取得します。  
GcResizeForm にアタッチされた GcResize コンポーネントを取得します。  
解説
このイベントのイベントハンドラで、GcResize コンポーネントの初期設定を変更できます。
使用例

次のサンプルコードは、このイベントの使用方法を示します。

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

void _gcApplicationResize_GcResizeAttached(object sender, GcResizeAttachedEventArgs e)
{
    // If you want specific GcResize's setting different from GcApplicationResize, You can change it in
    // GcResizeAttaching or GcResizeAttached event.
    e.GcResize.MinimumFactor = 0.8f;

    if (e.Form is ResizeForm)
    {
        e.GcResize.ControlResizing += (e.Form as ResizeForm).ControlResizingProc;
    }
}
Private Sub _gcApplicationResize_GcResizeAttached(sender As Object, e As GcResizeAttachedEventArgs)
    ' If you want specific GcResize's setting different from GcApplicationResize, You can change it in
    ' GcResizeAttaching or GcResizeAttached event.
    e.GcResize.MinimumFactor = 0.8F

    Dim resizeForm = TryCast(e.Form, ResizeForm)
    If (resizeForm IsNot Nothing) Then
        AddHandler e.GcResize.ControlResizing, AddressOf resizeForm.ControlResizingProc
    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

参照

GcApplicationResize クラス
GcApplicationResize メンバ

Send Feedback