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.