【发布时间】:2009-06-08 14:17:08
【问题描述】:
我有一个在 WinCE 和 WM 设备上运行良好的应用程序(到目前为止我已经测试过所有这些设备)。 我刚收到一个要测试的新设备,当设计人员在设备上创建按钮时,表单会抛出 NotSupportedException。
该设备是摩托罗拉 EWP2100 Wifi 手机。 根据其关于页面,它运行 WinCE 5
这是它抛出的完整异常
发生 System.NotSupportedException 消息="NotSupportedException" 堆栈跟踪: 在 Microsoft.AGL.Common.MISC.HandleAr() 在 System.Windows.Forms.Control._InitInstance() 在 System.Windows.Forms.Control..ctor() 在 System.Windows.Forms.ButtonBase..ctor() 在 System.Windows.Forms.Button..ctor() 在 SmartLane.Config.InitializeComponent() 在 SmartLane.Config..ctor() 在 SmartLane.MainForm.ShowConfig() 在 SmartLane.MainForm.MainForm_Load() 在 System.Windows.Forms.Form.OnLoad() 在 System.Windows.Forms.Form._SetVisibleNotify() 在 System.Windows.Forms.Control.set_Visible() 在 System.Windows.Forms.Application.Run() 在 SmartLane.Program.Main() 内部异常:
抛出它的代码在这里:
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.txtServerAddress = new System.Windows.Forms.TextBox();
this.btnOK = new System.Windows.Forms.Button(); //<---- THIS THROWS
...
}
我知道这是一个非常具体的问题,但我以前从未遇到过这个问题,异常并没有真正让我知道这里出了什么问题。
感谢任何意见或建议。 谢谢
【问题讨论】:
标签: .net winforms compact-framework