SIP Disappears after MessageBox.Show() -- Doesn't come back

I have strange problem that SIP disappears after the messagebox.Show() is called and never shows up again.

1. I have 5 forms and One form is the startup form. I am displaying other 4 forms as ShowDialog when particular button is pressed in the MainForm.

2. Whenever I have informational message box MessageBox.Show() the SIP disappears. After I click OK in the message box, the SIP still doesn't comeback. If I remember where the SIP was before and if I click that place SIP appears again. So SIP appears again only when there is only 2 Sub Menu Items. In that case SIP Icon was in the bottom middle of the MenuBar. In these cases SIP comes back after I click wher the SIP was.

3. But SIP doesn't come back when the SIP was at the Bottom right Corner. I had to close the form and re-open it. In this case there is 3 or more SubMenu items on the form.

Can some one help me to solve this problem.

Compact Framework 2.0
Windows Mobile 5.0
Dell AXIM X51V

Thanks,

[1027 byte] By [VijayVeera] at [2007-12-23]
# 1

Hi,

Can you send a small piece of code reproducing the issue to me at Anthony.Wong@microsoft.com? This will help me investigate the issue.

Thanks!

Anthony Wong [MSFT]

AnthonyWong at 2007-8-30 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...
# 2

There is no code involved in it. It is just plain MessageBox.Show(). I founf this to be speraodic that SIP icon will not come back. If I reset the device now this seems to be working fine again. This could be some incompatibility with other native code. Now I am using this.Menu = MAinMenu after every MessageBox.Show(). Now I do not have any problems.

VijayVeera at 2007-8-30 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...
# 3

Hi,

I am glad your issue has been resolved. Please let me know if you have further information that would reproduce the issue.

Cheers,

Anthony Wong [MSFT]

AnthonyWong at 2007-8-30 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...
# 4

Hi,

I am using vb.Net in VS2005 CF2 with WM5 device and also PPC 2003 device. I face the same problem, where after prompt a messagebox, the SIP keyboard disappear. I can't make it appear even I use me.menu = me.mainmenu1 because I use a Toolbar with toolbarbutton. Please help me to solve this as I had try to debug the problem for several day. The application work fine in VS2003 CF 1 with PPC 2003 device.

Following is my code:

Public Class Form1

Friend WithEvents ToolBarButton_Setting As System.Windows.Forms.ToolBarButton

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Me.ToolBarButton_Setting = New System.Windows.Forms.ToolBarButton

Me.ToolBar1.Buttons.Add(Me.ToolBarButton_Setting)

End sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

MessageBox.Show("Please enter User ID")

End Sub

End Class

* Someone had told me to soft reset the device and it work now. But I believe this problem will come back again as it happen before and I just don't know what trigger it. If there is some code which can prevent it from happen, I will feel more safer. The device I use is HP iPAQ hx2700 series and O2 XDA II. Thank you

wapmill at 2007-8-30 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...
# 5

Try

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

MessageBox.Show("Please enter User ID");
this.Menu = this.MainMenu1;

End Sub

The amove code is C# . Please convert that into VB.NET. Make sure no other Display or Menu related code executes after this Button1_Click event. That will reset the menu and make it disappear. If possible tyr the SIP on the Visual Studio and have your own menu and SIP. These are the only ways I know of.. GoodLuck

VijayVeera at 2007-8-30 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...