PowerTools InputMan for Windows Forms 8.0J
PopUpClosingEventArgs クラス
メンバ  使用例 

DropDownClosing イベントのイベントデータを格納します。
構文
Public Class PopUpClosingEventArgs 
   Inherits System.EventArgs
public class PopUpClosingEventArgs : System.EventArgs 
使用例
SyncData プロパティを利用する GcNumber コントロールを作成するコード例を次に示します。
//  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
継承階層

System.Object
   System.EventArgs
      GrapeCity.Win.Editors.PopUpClosingEventArgs

参照

PopUpClosingEventArgs メンバ
GrapeCity.Win.Editors 名前空間

 

 


© 2004-2015 GrapeCity inc. All rights reserved.