System.Windows.Forms.AxHost.InvalidActiveXStateException了未处理 [英] System.Windows.Forms.AxHost.InvalidActiveXStateException was unhandled
本文介绍了System.Windows.Forms.AxHost.InvalidActiveXStateException了未处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不断地与这个异常艰难。
I am continuously struggling with this exception
的类型'System.Windows.Forms.AxHost.InvalidActiveXStateException未处理的异常出现在AxInterop.SBXPCLib.dll
An unhandled exception of type 'System.Windows.Forms.AxHost.InvalidActiveXStateException' occurred in AxInterop.SBXPCLib.dll
任何帮助,请,我失去了一些东西。
any help please, am i missing some thing.
推荐答案
试试这个,它会解决你的问题:
有关每个的Active X 。控制时,需要首先创建它,这样所有的事件和把手应该初始化
For each and every active x control, it is needed to create it first, so that all the events and handles should be initialized.
因此,尝试这样的:
axMDocView1.CreateControl()
这篇关于System.Windows.Forms.AxHost.InvalidActiveXStateException了未处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文