ParentWindowHandle プロパティー

解説
ダイアログやウィンドウに使用している親ウィンドウのハンドルを設定、または返します。

書式
Property ParentWindowHandle As Integer

戻り値
ウィンドウのハンドルを含む整数値

コメント
このプロパティーによって、.NETフォームを持っていないアプリケーションから親ウィンドウを指定することができます。

参照

ParentWindowHandle使用例
VB 例:

m_spel.ParentWindowHandle = Me.Handle  
m_spel.ShowWindow(RCAPINet.SpelWindows.IOMonitor)  

C# 例:

m_spel.ParentWindowHandle  = (int)this.Handle;  
m_spel.ShowWindow(RCAPINet.SpelWindows.IOMonitor);