DocumentList.DocumentActivated イベント
アセンブリ: Microsoft.WindowsCE.Forms (microsoft.windowsce.forms.dll 内)

Dim instance As DocumentList Dim handler As DocumentListEventHandler AddHandler instance.DocumentActivated, handler
public: event DocumentListEventHandler^ DocumentActivated { void add (DocumentListEventHandler^ value); void remove (DocumentListEventHandler^ value); }

このイベントを処理すると、選択したファイルを開くことができます。ファイルへのパスを取得するには、Path プロパティを使用します。
ユーザーが DocumentList コントロールに関連付けられたショートカット メニューをアクティブにしたときには、このイベントは発生しません。

DocumentActivated イベントを処理するメソッドのコード例を次に示します。このコード例は、DocumentList クラスのトピックで取り上げているコード例の一部分です。
' Handle the DocumentedActivated ' event with code to open the file. Private Sub DocList_DocumentActivated(ByVal sender As Object, _ ByVal docevent As Microsoft.WindowsCE.Forms.DocumentListEventArgs) Handles DocumentList1.DocumentActivated StatusBar1.Text = "Activated: " & docevent.Path ' Add code to open the selected file. End Sub




- DocumentList.DocumentActivated イベントのページへのリンク