你好,
我确实看到了这样的解释:http://msdn.microsoft.com/en-us/library/system.windows.forms.htmlwindow.parent(v=vs.80).aspx
The
HtmlWindow that owns the current window. If the current window is not a <tt>FRAME</tt>, or is not embedded inside of a <tt>FRAME</tt>, it returns a null reference
你能详细描述一下你当前的Window以及他的Parent是什么么?最好能把你的代码段贴出来。
另外为了监测结果是不是Null,请直接将得到的值跟空值做比较,这样插入断点以后结果会更加直观
Barry
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.