SIP Weirdness

H

Harry Simpson

I have a SIP control on each of two forms.

Whenever I try to run the app on the device via ActiveSync in debug, and try
to programmatically enable or disable the SIP in code, I get a green error
break with the following error message:

An unhandled exception of type 'System.Exception' occurred in
Microsoft.WindowsCE.Forms.dll

Additional information: Exception

Why do i have no programmatic control over the SIP

InputPanel1.enabled = True should show the SIP right?

I even change the property in the editor and the break occurs on the line in
the " Windows Form Designer generated code " region of the page where this
property is set:

'InputPanel1
InputPanel1.enabled = True

What's the problem please.
\
Thanks
Harry
 
H

Harry Simpson

Thanks Alex,

Could part of my problem be that I'm using an InputPanel control for each
form instead of an application wide one?

I have a frmLogon that needs a SIP and a frmMain that needs a SIP.


Harry
 
H

Harry Simpson

Ramesh,

I'd seen that before Ramesh but that's not my question.

I have Form1 with a menu and inputpanel control on it.
I have a Form2 with a menu control on it.

How do i access the inputpanel on Form1 from Form2? In runtime, the sip
icon shows up on form2 without adding another control....i just want to be
able to close the SIP on Form2.

"Form1.InputPanel1.enabled = false" doesn't work

Thanks
Harry
 
S

Serg Kuryata [MS]

Hello Harry,

I'm not sure that I clearly understand the problem you are describing.
Please could you provide some simple application that reproduces the
problem?

Please note that you can have as many objects of the InputPanel class as
you want - all of them will work with the same instance of SIP. A separate
SIP is not created for every new object of the InputPanel class, i.e. you
can have an inputpanel object in the Form1 class and another inputpanel in
the Form2 class. The effect of changing the Enabled property of any of the
inputpanel objects is global - it affects the entire OS and not one form
only. So, you can declare an object of the InputPanel class in the Form2
class too and then you can use it to control SIP from the Form2.

Hope this helps.
Thank you,
Sergiy.

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Harry Simpson" <[email protected]>
| References: <[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
| Subject: Re: SIP Weirdness
| Date: Thu, 24 Jun 2004 13:19:58 -0500
| Lines: 98
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: 66.89.73.130.ptr.us.xo.net 66.89.73.130
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11
.phx.gbl
| Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.compactframework:55920
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Ramesh,
|
| I'd seen that before Ramesh but that's not my question.
|
| I have Form1 with a menu and inputpanel control on it.
| I have a Form2 with a menu control on it.
|
| How do i access the inputpanel on Form1 from Form2? In runtime, the sip
| icon shows up on form2 without adding another control....i just want to be
| able to close the SIP on Form2.
|
| "Form1.InputPanel1.enabled = false" doesn't work
|
| Thanks
| Harry
|
| | > Harry,
| > Take a look at the below link
| > http://samples.gotdotnet.com/quickstart/CompactFramework/do
| > c/inputpanel.aspx
| >
| > Hope this helps.
| >
| > Ramesh
| >
| > >-----Original Message-----
| > >Thanks Alex,
| > >
| > >Could part of my problem be that I'm using an InputPanel
| > control for each
| > >form instead of an application wide one?
| > >
| > >I have a frmLogon that needs a SIP and a frmMain that
| > needs a SIP.
| > >
| > >
| > >Harry
| > >
| > message
| > >| > >>
| > >> Move this code in the end of Form OnLoad event.
| > >> --
| > >> Alex Yakhnin .NET CF MVP
| > >> www.intelliprog.com | www.opennetcf.org
| > >>
| > message
| > >> | > >> > I have a SIP control on each of two forms.
| > >> >
| > >> > Whenever I try to run the app on the device via
| > ActiveSync in debug, and
| > >> try
| > >> > to programmatically enable or disable the SIP in
| > code, I get a green
| > >error
| > >> > break with the following error message:
| > >> >
| > >> > An unhandled exception of type 'System.Exception'
| > occurred in
| > >> > Microsoft.WindowsCE.Forms.dll
| > >> >
| > >> > Additional information: Exception
| > >> >
| > >> > Why do i have no programmatic control over the SIP
| > >> >
| > >> > InputPanel1.enabled = True should show the SIP right?
| > >> >
| > >> > I even change the property in the editor and the
| > break occurs on the
| > >line
| > >> in
| > >> > the " Windows Form Designer generated code " region
| > of the page where
| > >this
| > >> > property is set:
| > >> >
| > >> > 'InputPanel1
| > >> > InputPanel1.enabled = True
| > >> >
| > >> > What's the problem please.
| > >> > \
| > >> > Thanks
| > >> > Harry
| > >> >
| > >> >
| > >>
| > >>
| > >
| > >
| > >.
| > >
|
|
|
 
Joined
Dec 6, 2005
Messages
1
Reaction score
0
Possible Resolution

I experienced this problem and found a few threads describing it, but no fix. The specific problem I've encountered is that I would receive a System.Exception error when I tried to enable the InputPanel (InputPanel1.Enabled = True) and the code executed.

I resolved the problem by adding a menu to the form in addition to the InputPanel (Toolbox > MainMenu). Once the menu was added, the form was able to access the system's keyboard. I think the error is due to its inability to access the menu when it's not present.

My guess is that the original post had a menu item on the one form but not the other. I imagine they resolved it by now (or abandoned it) but wanted to post a resolution for others in search of help. I happened to think of this and try it by chance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top