'宣言 Public Event AfterNoteAdded As NoteEventHandler
public event NoteEventHandler AfterNoteAdded
イベント ハンドラが、このイベントに関連するデータを含む、NoteEventArgs 型の引数を受け取りました。次の NoteEventArgs プロパティには、このイベントの固有の情報が記載されます。
Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinSchedule Imports System.Diagnostics Private Sub ultraCalendarInfo1_AfterNoteAdded(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinSchedule.NoteEventArgs) Handles ultraCalendarInfo1.AfterNoteAdded '---------------------------------------------------------------------------------------------------- ' 説明 ' AfterNoteAdded ' ' 新しいメンバーがコンポーネントの Notes コレクションに追加された後に発生します ' '---------------------------------------------------------------------------------------------------- Dim info As String = String.Empty info += "A new Note was just added to the UltraCalendarInfo object:" + vbCrLf + vbCrLf info += "The new Note is for : " + e.Note.Date.ToLongDateString() + vbCrLf info += "The new Note's Description is: " + e.Note.Description + vbCrLf MessageBox.Show(info, "AfterNoteAdded", MessageBoxButtons.OK) End Sub
using System.Diagnostics; using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinSchedule; private void ultraCalendarInfo1_AfterNoteAdded(object sender, Infragistics.Win.UltraWinSchedule.NoteEventArgs e) { //---------------------------------------------------------------------------------------------------- // 説明 // AfterNoteAdded // // 新しいメンバーがコンポーネントの Notes コレクションに追加された後に発生します // //---------------------------------------------------------------------------------------------------- string info = string.Empty; info += "A new Note was just added to the UltraCalendarInfo object:" + "\n\n"; info += "The new Note is for : " + e.Note.Date.ToLongDateString() + "\n"; info += "The new Note's Description is: " + e.Note.Description + "\n"; MessageBox.Show( info, "AfterNoteAdded", MessageBoxButtons.OK ); }