winfrom 程序在 xp 操作系统上报错提示

窗口类名无效(Window class name is not valid)

 

解决方法

 

注释

Program类 里 这句

Application.EnableVisualStyles();

 

解决