hi .. 我在VB.NET2008中醒来.在我的项目中,添加一个Menustrip以提供所有报告名称,并通过单击该报告使用Tabcontrol进行查看.在该运行时中,我单击reportname会发生异常.. 拖放注册未成功" 不能将顶级控件添加到控件中." 发生这种类型的异常,所以没有查看报告 是什么原因??? ----------------------------------- 我已经发送了一个上面的问题?针对该答复,还有另外两行代码,但是在form_load中给出了 发生这种类型的异常.. 无法设置指定的COM单元状态"
hi.. I am woking in VB.NET2008.. In my Project add a Menustrip to give all report name and using Tabcontrol to view by clicking the report.. In that runtime i am clicking reportname an exception is occur.. "dragdrop registration did not succeed" "Top-level control cannot be added to a control." This type of exception occur so didnt view the report What the reason??? ----------------------------------- i already sent a above question??For that reply answer with two more line coding but i was given in form_load this type of exception occur.. "Failed to set the specified COM apartment state"
推荐答案看看您的代码,您在入口点之前是[System.STAThread]还是[STAThread](通常Main)? 如果没有,请添加. 如果这不能解决您的问题,请显示代码,尝试捕获异常并提供异常转储.不要忘记指出抛出异常的代码行.
更多推荐
在vb.net中的表单加载中发生异常
发布评论