非常着急,在线等待。异常:窗口类无效-VB.NET开发

问题描述

在我自己设计的电脑上无问题。在别的电脑上出现这问题,实在不知道从何出下手解决问题,还请各位大虾帮忙,在此不盛感激。具体问题如下:出现在主窗口的InitializeComponent()函数中,VS提示信息如下:未处理System.ComponentModel.Win32ExceptionMessage="窗口类名无效。"Source="System.Windows.Forms"ErrorCode=-2147467259NativeErrorCode=0StackTrace:在System.Windows.Forms.NativeWindow.WindowClass.RegisterClass()在System.Windows.Forms.NativeWindow.WindowClass.Create(StringclassName,Int32classStyle)在System.Windows.Forms.NativeWindow.CreateHandle(CreateParamscp)在System.Windows.Forms.Control.CreateHandle()在System.Windows.Forms.Control.CreateControl(BooleanfIgnoreVisible)在System.Windows.Forms.Control.CreateControl(BooleanfIgnoreVisible)在System.Windows.Forms.Control.CreateControl(BooleanfIgnoreVisible)在System.Windows.Forms.Control.CreateControl(BooleanfIgnoreVisible)在System.Windows.Forms.Control.CreateControl()在System.Windows.Forms.Control.WmShowWindow(Message&m)在System.Windows.Forms.Control.WndProc(Message&m)在System.Windows.Forms.ScrollableControl.WndProc(Message&m)在System.Windows.Forms.ContainerControl.WndProc(Message&m)在System.Windows.Forms.Form.WmShowWindow(Message&m)在System.Windows.Forms.Form.WndProc(Message&m)在System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&m)在System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&m)在System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtrhWnd,Int32msg,IntPtrwparam,IntPtrlparam)在System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRefhWnd,Int32nCmdShow)在System.Windows.Forms.Control.SetVisibleCore(Booleanvalue)在System.Windows.Forms.Form.SetVisibleCore(Booleanvalue)在System.Windows.Forms.Control.set_Visible(Booleanvalue)在System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32reason,ApplicationContextcontext)在System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32reason,ApplicationContextcontext)在System.Windows.Forms.Application.Run(FormmainForm)在Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DisplaySplash()在System.Threading.ThreadHelper.ThreadStart_Context(Objectstate)在System.Threading.ExecutionContext.runTryCode(ObjectuserData)在System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCodecode,CleanupCodebackoutCode,ObjectuserData)在System.Threading.ExecutionContext.RunInternal(ExecutionContextexecutionContext,ContextCallbackcallback,Objectstate)在System.Threading.ExecutionContext.Run(ExecutionContextexecutionContext,ContextCallbackcallback,Objectstate)在System.Threading.ThreadHelper.ThreadStart()

解决方案

解决方案二:
工程属性“启用XP视觉样式”要去掉。
解决方案三:
感谢,感谢!!!!!补充一下:软件运行在XP系统下,新PC使用的是华硕B85系列主板
解决方案四:
感谢Tiger_Zhao,我去试一下
解决方案五:
真的很感谢Tiger_Zhao我试过了,确实可以。但问题是什么原因遭成的呢?为什么在我设计用的PC机和笔记本电脑都可以,却在这个更新的,更好的PC上就不行呢?是缺少什么文件或多了什么文件吗,例如NetFrameWork3.0?请求Tiger_Zhao提供帮助????
解决方案六:
在XP上,好像是某些comctl32.dll的版本就会出这个错。
解决方案七:
在XP上,好像是某些comctl32.dll的版本就会出这个错。微软都不维护XP了,所以会去解决这个问题。
解决方案八:
很抱歉,这些天很忙没有及时回复。应该没错,我看到主要是TabControl控件和Button控件发生了主要变化,变化很难看。是否找到这些控件所在的dll,更换就可以呢。这里有个问题,怎样确定这些控件所在的dll。在UI设计中看到TabControl在FrameWork2.0中,不知道是否正确?
解决方案九:
换Win7,不要再用XP了。微软不维护,出问题后果自负(难看也只能难看了)。
解决方案十:
事情非如此,也并非不想换,但这里使用到了别人家的代码库。别人的没有支持WIN7,那能怎么样
解决方案十一:
路过学习了,
解决方案十二:
所以只能难看了。维护不下去就得开发新版本(找新的代码库、或自己开发),这是必然的过程。

时间: 2024-07-30 22:57:38

非常着急,在线等待。异常:窗口类无效-VB.NET开发的相关文章

调用-C# 求助,在线等待。。。。。。。。。。。。。。。。。。。。。。。。。

问题描述 C# 求助,在线等待......................... C# form1登录界面登录后调用form3,报错"未处理objectDisposedException" 解决方案 你已经释放了form3,或者没有调用show创建窗口. 解决方案二: form3 f3=new form3(); f3.Show(); 页面调用没有错的话 就是其他地方的代码哪里出了点小错误 解决方案三: 你可以把你的代码截图或者贴上来看看,不然具体不好跟你找错误. 解决方案四: 是不是调

急急急...在线等待。java开发的WEB界面中的某个按钮失效

问题描述 用java开发的WEB界面中的某个按钮(button按钮再用css再按钮上面加一个图片),在一个界面中点击按钮失效了,但是在别的机子上可以正常使用,用的IE8,在线等待. 解决方案 解决方案二:IE8有自带的developtools,可以调试页面的,你可以试下.另外不知道你说的失效时什么情况.解决方案三:就是点击以后,没有反应了解决方案四:没看明白~~解决方案五:比如说,你在一个修改用户信息的界面中有一个"取消按钮"和一个"确认按钮",其中一个按钮,点击后

c#中用SQL加载checkboxlist遇到了麻烦……在线等待……

问题描述 今天看书做习题,习题要求在asp.net中(C#语言)在页面加载的时候添加checkboxlist控件内容.我是这个作的,先在App_Code中添加了一个类.usingSystem;usingSystem.Data;usingSystem.Configuration;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingSystem.Web.UI.W

struts-里的parameter的问题,在线等待

问题描述 报了这个错误:Request[/insernews]doesnotcontainhandlerparameternamed'command'.Thismaybecausedbywhitespaceinthelabeltext.我的配置文件struts-config里是这样的<actionpath="/insernews"type="org.springframework.web.struts.DelegatingActionProxy"name=&q

TreeView 递归 去 一个节点下 所有 叶子节点的问题,在线等待高人帮忙,急~!

问题描述 我把没用的代码都去掉,核心代码就是下面的,点击树上的某个控件之后,用递归把其下面的所有叶节点全部取出来,但是出了错,在线等待高人解答错在哪里,或者直接告诉我应该怎么取//点击树上的某个节点protectedvoidtvCate_SelectedNodeChanged(objectsender,EventArgse){//利用递归获取他所有的子节点tn=tvCate.getSelectedNode();TreeNodetn2=newTreeNode();getLeafNode(tn,tn

WinMain函数 注册窗口类 消息循环

#include <windows.h>#pragma comment(lib,"winmm.lib")//为了要播放声音,必须导入这个库 LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM); int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,PSTR szCmdLine, int iCmdShow)/* HINSTANCE 类型的含义为实

cxf-CXF访问的性能问题,寻求方案,在线等待

问题描述 CXF访问的性能问题,寻求方案,在线等待 JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();factory.setAddress(SERVICE_ADDRESS);factory.setServiceClass(DemoService.class);DemoService service = (DemoService) factory.create(); 测试:第一步,需要花费2秒,第4步需要花费7-10秒. 请问大

VC++实现非窗口类中使用定时器的方法

定时器在Windows 的程序中的作用不可忽略,也随处可见.设定一个时间间隔每0.5秒或者1秒钟刷新一次时钟,这样就可以完成一个简单的电子钟程序.在不同的编程工具中定时器的用法也不同,Visual C++中也给我们提供了实现这种功能的方法,而且方法不只一种.在窗口类中是使用定时器比较很简单,用SetTimer()设置了定时器之后,并在Class Wizard中添加了WM_TIMER消息映射后,您就可以在映射函数OnTimer()中添加代码实现,来定时完成您的任务,而且还支持任意多个定时器,这种方

非窗口类中使用定时器的方法及相关知识的介绍

本文代码运行效果图如下: 摘 要:本文主要通过一些简单的例子,介绍了如何在Visual C++的窗口和非窗口类中使用定时器.重点介绍了如何用静态成员函数和静态数据成员在非窗口类中使用定时器,同时,又介绍了与定时器相关的知识,例如回调函数,C++类中的静态成员,以及模板类中的映射类等. 关键字 C++ 类 定时器 静态函数 静态成员函数 静态数据成员 回调函数 映射类 摘 要:This page introduce how to use timer in window class and none