Conflict between MessageBox and sip on PDA Platform

Source: Internet
Author: User

InProgramWhen the MessageBox pop-up error message is applied, when you click the OK button, it is found that the keyboard icon on the mainmenu has disappeared. You must click it once to appear. Although it does not affect the use of normal functions, it may be confusing for PDA cainiao, and many methods to refresh the interface cannot be solved.

Baidu cannot find the answer to this strange problem. You can directly query the problem on Google and find that foreigners also encounter this problem:
Http://www.dotnet247.com/247reference/msgs/44/220736.aspx
And there is no specific feasible solution.

It's funny that someone has also discovered this bug, but he is very smart and has madeMsgbox javasware LibraryShared Software, mentioned to solve this bug, but did not provide the source code, is also useless for me:
Http://www.mpegtv.com/wince/msgbox/

But here I got a little inspiration: The SIP and mainmenu are a whole. I tried to set the menu of the form to null, and then reset its menu attribute. After testing, it was successful, haha.

MessageBox. Show ( " Demo Error " , " Error " , Messageboxbuttons. OK, messageboxicon. Hand, messageboxdefaultbutton. button1 );
This . Menu =   Null ;
This . Menu =   This . Mainmenu1;

These problems are really a big problem. Sometimes I don't know why the problem is solved.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.