开发者

Non-modal forms cannot be displayed in this host application from an ActiveX DLL, ActiveX Control, or Property Page

How to Resolve following Error in .net

Non-modal forms cannot be displayed in this host application from an ActiveX DLL, ActiveX Control, or Property Page开发者_开发百科.


See http://support.microsoft.com/kb/176468 for the details of the cause of this. In particular, note the recommendation that the code in the ActiveX Control should have:

If App.NonModalAllowed Then
  frmModeless.Show vbModeless
Else
  frmModeless.Show vbModal
End If

If this is a third-party control that you do not have the source to, as far as I can tell, there is no easy workaround. The only workaround I have found so far is to wrap the offending control within another control created with VB6, making sure that that control is compiled to an ActiveX .exe not an ActiveX .dll.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜