Visual Studio 2005 Software Input Panel Icon disappears

I am using .net 2.0 and I'm using instances of the software inputpanel on various forms on my Pocket PC application. Sometimes the input panel icon is no longer visible on my cradled PDA to click on and I'm trying to work out how to make it visible again or to 'increase its zorder" and bring it to the front. The inputpanel lies at the bottom RHS of the PDA screen on top of a toolbar. Has anyone experienced this before The input panel still responds to enabled commands to show and hide it programatically. Has anyone any ideas on how to fix this

 



Answer this question

Visual Studio 2005 Software Input Panel Icon disappears

  • Coriolan

    To me it sounds like that when you upgraded your project to VS2005 - it kinda messed up the designer generated code and additionally the behavior of the library itself changed. I think you've to go thru your code and the documentation of SIP to really figure out what is going on.

    Manav



  • Lenine

    Friend WithEvents ipSIP As Microsoft.WindowsCE.Forms.InputPanel

    and in InitializeComponent

    Me.ipSIP = New Microsoft.WindowsCE.Forms.InputPanel

    Basically I have various text boxes which show the SIP when they get focus and hide it afterwards using the following GotFocus and LostFocus event handlers

    Private mbActionGotFocus As Boolean = True

    Private Sub GotFocusShowSIP(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtAuth.GotFocus, txtCardName.GotFocus, txtCardNo.GotFocus, txtCCV.GotFocus, txtChequeNo.GotFocus, txtIssue.GotFocus, txtNewNote.GotFocus, txtOrderNumber.GotFocus, txtPaymentValue.GotFocus, txtPONumbers_Value.GotFocus, txtPrintName.GotFocus

         If mbActionGotFocus Then ShowSIP(ipSIP)

    End Sub

    Private Sub LostFocusHideSIP(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtAuth.LostFocus, txtCardName.LostFocus, txtCardNo.LostFocus, txtCCV.LostFocus, txtChequeNo.LostFocus, txtIssue.LostFocus, txtNewNote.LostFocus, txtOrderNumber.LostFocus, txtPaymentValue.LostFocus, txtPONumbers_Value.LostFocus, txtPrintName.LostFocus

         HideSIP(ipSIP)

    End Sub

    and in another module ShowSIP/ HideSIP

    Public Sub ShowSIP(ByRef SIP As Microsoft.WindowsCE.Forms.InputPanel)

         Try

              ' On Phil's Xda II this causes an exception

              SIP.Enabled = True

         Catch ex As Exception

         End Try

    End Sub

    Public Sub HideSIP(ByRef SIP As Microsoft.WindowsCE.Forms.InputPanel)

         Try

              ' On Phil's Xda II this causes an exception

              If SIP.Enabled Then

                   SIP.Enabled = False

              End If

         Catch ex As Exception

         End Try

    End Sub

    The code works fine most times and I can't quite pinpoint when it doesn't but sometimes the software input panel icon is not visible on this form.


  • AshishMalhotra

    I

    I have a big problem after show a simple dialog msgbox("Hello!") the Input Panel Icon disappears. Why how can i solve this.

    The link dont work.

    Thanks


  • E.Herzog

    Are you using CF 2 Service Pack 1 It's SIP icon is buggy and disappears when a message box is closed

    Check my post in this thread, hopefully this will fix your problem

    http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=969014&SiteID=1

    Jarod

  • yzhang12

    I inherited this Pocket PC project from someone else and what they had done was declare a new instance of the SIP on each form.

    Refering to http://msdn.microsoft.com/netframework/programming/netcf/cffaq/default.aspx section How do I use the inputpanel component it says that Multiple forms should share the same InputPanel object.

    This morning I've changed the project to do this. It's early days yet but the SIP icon hasn't diasppeared yet. So maybe this is the solution.


  • sticksnap

    Manav,

    Which SIP documentation do you recommend that I look at

    In addition there is very little designer generated code for the SIP and I started this post after spending considerable time in the debugger and looking at the way I use SIP in my code. I'm not sure what to try next ... that's why I'm asking for help.

    Jim.


  • Horst Klein

    I'm glad you finally found the solution! Way to go my friend :)

    Manav



  • WinFormsUser13232

    Can you post your source code or designer created code

    Manav



  • TomWardill

    Essentially you need to look at the differences specific to SIP between 1.0 and 2.0 version of the compact framework. I'm sure you've spent enough time on debugging this.

    Manav



  • Kasracer

    I have tried debugging and I'm none the wiser.

    There is no exception it's just that the software input panel icon disappears.

    I haven't tried using the device emulator. I have had the problem using a Dell Axim x50 and an O2 Xda IIs both running Windows Mobile 2003 Second Edition. The Dell using version 4.21.1088(build 14260.2.0.5) and the O2 using version 4.21.1088(Build 14132).

    The problem is that I can't reproduce the problem to order. It just happens sometimes. Sometimes it happens when I'm running from Visual Studio connected to one of the above devices and sometimes it happens when I've installed a cabbed version of my application.

    This Pocket PC application was originally developed using Visual Studio 2003 and I've recently converted it to Visual Studio 2005. I ended up creating new 2005 projects for the application and its components as straight conversion gave me too many problems.

    The Software input panel definitely behaves differently under 2005. I had to recode parts of my application which previously had successfully collapsed(set enabled to false) the SIP. My Pocket PC application has several forms which I cache the first time they are created and subsequently reuse (as form creation takes a long time). Some of the forms have a SIP defined and some don't. I've also noticed that the SIP icon is visible on some forms which don't even have the control defined.


  • Andrew J

    Have you tried debugging Do you see the same behavior on device emulator What is the exception you're receiving

    Manav



  • Visual Studio 2005 Software Input Panel Icon disappears