PowerTools InputMan for Windows Forms 8.0J
Value プロパティ (PopUpClosingEventArgs)
使用例 

計算ウィンドウに設定された値を取得または設定します。
構文
Public Property Value As Object
public object Value {get; set;}

プロパティ値

計算ウィンドウに設定された値を表すObjectオブジェクト。
解説
このプロパティは、ポップアップダイアログの値を取得します。
使用例
//  Please use the following namespace
//  using System.Windows.Forms;
//  using GrapeCity.Win.Editors;

public void WirePopUpClosingEvent()
{
    GcNumber gcNumber1 = new GcNumber();
    gcNumber1.PopUpClosing += new EventHandler<PopUpClosingEventArgs>(OnNumberPopUpClosing);
}

private void OnNumberPopUpClosing(object sender, PopUpClosingEventArgs e)
{
    if (e.Value is decimal &amp;&amp; (decimal)e.Value < 0)
    {    
        // If the value of the popup window less than zero, it's not synchornizes the data.
        e.SyncData = false;
    }
}
'  Please use the following namespace
'  Imports System.Windows.Forms;
'  Imports GrapeCity.Win.Editors;

Public Sub WirePopUpClosingEvent()
    Dim gcNumber1 As New GcNumber()
    AddHandler gcNumber1.PopUpClosing, AddressOf OnNumberPopUpClosing
End Sub

Private Sub OnNumberPopUpClosing(ByVal sender As Object, ByVal e As PopUpClosingEventArgs)
    If TypeOf e.Value Is Decimal AndAlso DirectCast(e.Value, Decimal) < 0 Then
        ' If the value of the popup window less than zero, it's not synchornizes the data.
        e.SyncData = False
    End If
End Sub
参照

PopUpClosingEventArgs クラス
PopUpClosingEventArgs メンバ

 

 


© 2004-2015 GrapeCity inc. All rights reserved.