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);