我正在Motorola ES400开发一个WM6.5应用程序,并且当我的应用程序忙于执行某些操作时需要通知用户 在EMDK中搜索。 我在EMDK的帮助中搜索并找到 Symbol.MT2000.UserInterface.Spinner 类 但在调用这个类时,我有一个null异常错误 这是代码:
`
Symbol.MT2000.UserInterface.Spinner sp = new Symbol.MT2000.UserInterface.Spinner();
//This is a delegate of the DeleteAll function
sp.BeginInvoke(DeleteAll);
`
答案 0 :(得分:1)
我认为您的空引用可以通过添加new
关键字来解决,如下所示:
Symbol.MT2000.UserInterface.Spinner sp = new Symbol.MT2000.UserInterface.Spinner();
好奇,你能不能将光标设置为等待光标并达到同样的效果?
Cursor.Current = Cursors.WaitCursor;