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
| > >> >
| > >> >
| > >>
| > >>
| > >
| > >
| > >.
| > >
|
|
|