繁体   English   中英

在CE5设备上使用.NET CF创建按钮时出现NotSupportedException吗?

[英]NotSupportedException when creating button with .NET CF on CE5 device?

我有一个在WinCE和WM设备上运行良好的应用程序(到目前为止,我已经测试了所有这些)。 我刚刚收到一个要测试的新设备,当设计人员在设备上创建按钮时,Form引发NotSupportedException。

该设备是Motorola EWP2100 Wifi电话。 根据其关于页面的信息,它运行WinCE 5

这是它抛出的全部异常

发生System.NotSupportedException消息=“ NotSupportedException” StackTrace:在Microsoft.AGL.Common.MISC.HandleAr()在System.Windows.Forms.Control._InitInstance()在System.Windows.Forms.Control..ctor() .Windows.Forms.ButtonBase..ctor()(在System.Windows.Forms.Button..ctor()在)SmartLane.Config.InitializeComponent()在SmartLane.Config..ctor()在SmartLane.MainForm.ShowConfig()在System.Windows.Forms.Form._OnLoad()(位于System.Windows.Forms.Form._SetVisibleNotify()-位于System.Windows.Forms.Control.set_Visible()-System.Windows.Forms处的SmartLane.MainForm.MainForm_Load()。 SmartLane.Program.Main()处的Application.Run()InnerException:

引发它的代码在这里:

    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
        ...
    }

我知道这是一个非常具体的问题,但是我以前从未遇到过这个问题,并且Exception并没有真正为我提供有关这里出了什么问题的线索。

我感谢任何建议。 谢谢

您可能正在使用不支持按钮的Smartphone(标准)SDK。

另请参阅此问题

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM