OpenFileDialogPPC クラス
ユーザーがファイルを開くために使用できるコントロールを表示するコモン ダイアログ ボックスを表します。このクラスは継承できません。
この型のすべてのメンバの一覧については、OpenFileDialog メンバ を参照してください。
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.Control
System.Windows.Forms.ScrollableControl
System.Windows.Forms.ContainerControl
System.Windows.Forms.Form
SmartPDA.Windows.Forms.FileDialogBase
SmartPDA.Windows.Forms.OpenFileDialog
SmartPDA.Windows.Forms.OpenFileDialogPPC
スレッドセーフ
この型の public static (Visual Basicでは Shared) のすべてのメンバは、マルチスレッド操作で安全に使用できます。インスタンスのメンバの場合は、スレッドセーフであるとは限りません。
解説
OpenFileDialog クラスを継承し PocketPC プラットフォーム用のコントロールの対応が実装されているクラスです。
OpenFileDialog クラスを参照してください。
使用例
[C#] OpenFileDialog の新しいインスタンスを FileDialogFactory により作成し、いくつかのプロパティを設定し、OpenFileDialog.ShowDialog メソッドを使用してダイアログボックスを表示する例を次に示します。この例は、フォームに Button が配置されていることを前提にしています。
このコードは、PocketPC プラットフォーム、Smartphon プラットフォームのどちらのプラットフォームでも動作します。
[Visual Basic, C++, JScript] Visual Basic, C++, JScript のサンプルはありません。
必要条件
名前空間 : SmartPDA.Windows.Forms
プラットフォーム : .NET Compact Framework - Windows CE.NET
アセンブリ : SmartPDA.Windows.Forms ( FileDialog.dll 内 )
参照 :
OpenFileDialog メンバ | SmartPDA.Windows.Forms 名前空間
この型のすべてのメンバの一覧については、OpenFileDialog メンバ を参照してください。
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.Control
System.Windows.Forms.ScrollableControl
System.Windows.Forms.ContainerControl
System.Windows.Forms.Form
SmartPDA.Windows.Forms.FileDialogBase
SmartPDA.Windows.Forms.OpenFileDialog
SmartPDA.Windows.Forms.OpenFileDialogPPC
[C#] public class OpenFileDialog : FileDialogBase |
スレッドセーフ
この型の public static (Visual Basicでは Shared) のすべてのメンバは、マルチスレッド操作で安全に使用できます。インスタンスのメンバの場合は、スレッドセーフであるとは限りません。
解説
OpenFileDialog クラスを継承し PocketPC プラットフォーム用のコントロールの対応が実装されているクラスです。
OpenFileDialog クラスを参照してください。
使用例
[C#] OpenFileDialog の新しいインスタンスを FileDialogFactory により作成し、いくつかのプロパティを設定し、OpenFileDialog.ShowDialog メソッドを使用してダイアログボックスを表示する例を次に示します。この例は、フォームに Button が配置されていることを前提にしています。
このコードは、PocketPC プラットフォーム、Smartphon プラットフォームのどちらのプラットフォームでも動作します。
private void mOpenButton_Click(object sender, EventArgs e) { SmartPDA.Windows.Forms.OpenFileDialog fd = SmartPDA.Windows.Forms.FileDialogFactory.MakeOpenFileDialog(); fd.InitialDirectory = @"\My Documents"; fd.FileName = "foo.html"; fd.Filter = "All Files (*.*)|*.*|HTML Files (*.htm;*.html)|*.htm;*.html"; fd.FilterIndex = 2; if (fd.ShowDialog() == DialogResult.OK) { this.FileNameDisplay.Text = fd.FileName; MessageBox.Show(string.Format("{0}\nPath : {1}", fd.DialogResult.ToString(), fd.FileName)); } else { MessageBox.Show(string.Format("{0}\nFileName : {1}", fd.DialogResult.ToString(), fd.FileName)); } fd.Dispose(); } |
必要条件
名前空間 : SmartPDA.Windows.Forms
プラットフォーム : .NET Compact Framework - Windows CE.NET
アセンブリ : SmartPDA.Windows.Forms ( FileDialog.dll 内 )
参照 :
OpenFileDialog メンバ | SmartPDA.Windows.Forms 名前空間