DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Wed, 22 Aug 2007 13:03:58 -0700,    posted on: microsoft.public.dotnet.framework.compactframework        back       

Thread Index
  1    Arijull
          2    ctacke/ ctacke[at]opennetcf[dot]com
          3    Arijull


I need my control to fill the text property of other controls when an event is shooted (as the Input Panel)   
Hi.

I need to do something that it's a little dificult to explain....
Please be patient :)

I have a control (my control is a calculator).
This control returns a value (the result).

I need that:
If when i call this control (from a menu), there is a cell, a textbox,
or any control that it's editable focused (active in the form), then
the text of that control has to be fill with the calc return value.

My control shoukd work as the input panel works... If a textbox it's
focused, when you touch the letters of the input panel, they are
showed in the textbox..... The same happens if a grid's cell is
focused, then that cell is filled when you press the input panel
buttons.

My calc control has an "OK" button, I want that when i press that
button, if a textbox in my form is focused, the the text property of
this textbox must be the calc result.

What I need to know, is if there is a way to call to some P/Invoke or
something like that from my control, and then the problem is solved.
Or if I need to do something diferent. I think that my control should
work similar to the input panel (when the input panel fills the text
property of some control)

Thanks a lot for your time!
Date:Wed, 22 Aug 2007 13:03:58 -0700   Author:  

Re: I need my control to fill the text property of other controls when an event is shooted (as the Input Panel)   
The problem is that when they click your control, by default it will get 
focus, so there will be no other control focused to receive the input from 
it.


-- 

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com



"Arijull"  wrote in message 
news:1187813038.765673.169310@i13g2000prf.googlegroups.com...

> Hi.
>
> I need to do something that it's a little dificult to explain....
> Please be patient :)
>
> I have a control (my control is a calculator).
> This control returns a value (the result).
>
> I need that:
> If when i call this control (from a menu), there is a cell, a textbox,
> or any control that it's editable focused (active in the form), then
> the text of that control has to be fill with the calc return value.
>
> My control shoukd work as the input panel works... If a textbox it's
> focused, when you touch the letters of the input panel, they are
> showed in the textbox..... The same happens if a grid's cell is
> focused, then that cell is filled when you press the input panel
> buttons.
>
> My calc control has an "OK" button, I want that when i press that
> button, if a textbox in my form is focused, the the text property of
> this textbox must be the calc result.
>
> What I need to know, is if there is a way to call to some P/Invoke or
> something like that from my control, and then the problem is solved.
> Or if I need to do something diferent. I think that my control should
> work similar to the input panel (when the input panel fills the text
> property of some control)
>
> Thanks a lot for your time!
> 
Date:Wed, 22 Aug 2007 16:43:07 -0500   Author:  

Re: I need my control to fill the text property of other controls when an event is shooted (as the Input Panel)   
I understand that.

That takes me to another question: how does the input panel manage
that?
Can I do the same that the input panel does?

I think that I need my control to work as the input panel does, that's
why I put that example.

Thanks!
Date:Thu, 23 Aug 2007 06:50:47 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us