开发者

Loading notification in windows mobile 6.5 (Spinner)

I'm developing a WM6.5 application on Motorola ES400 and need a notification for users to appear when my application is busy doing something Searching in EMDK. I've searched in the Help of EMDK and found the Symbol.MT2000.UserInterface.Spinner class but in calling of this class I've a null exception error this is the code :

`
Symbol开发者_StackOverflow社区.MT2000.UserInterface.Spinner sp = new Symbol.MT2000.UserInterface.Spinner();
//This is a delegate of the DeleteAll function
sp.BeginInvoke(DeleteAll);

`


I think your null reference could be solved by adding the new keyword, something like this:

Symbol.MT2000.UserInterface.Spinner sp = new Symbol.MT2000.UserInterface.Spinner();

Just curious, could you not just set the cursor to the wait cursor and achieve the same effect?

Cursor.Current = Cursors.WaitCursor;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜