![](/img/trans.png)
[英]What are the requirements for running .net application on windows ce5?
[英]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.