PowerTools PlusPak for Windows Forms 8.0J
BeginAddControls メソッド (GcApplicationResize)
使用例 

このメソッドは、指定したフォームの子コントロールコレクションを変更する前に呼び出します。
構文
Public Sub BeginAddControls( _
   ByVal form As Form _
) 
public void BeginAddControls( 
   Form form
)

パラメータ

form
使用例

次のサンプルコードは、フォームがサイズ変更された後にコントロールを追加する方法を示します。

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

    If TypeOf e.Form Is ResizeForm Then
        AddHandler e.GcResize.ControlResizing, AddressOf TryCast(e.Form, 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