Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / August 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Arijull - 22 Aug 2007 21:03 GMT
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!
<ctacke/> - 22 Aug 2007 22:43 GMT
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.

Signature

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

> Hi.
>
[quoted text clipped - 26 lines]
>
> Thanks a lot for your time!
Arijull - 23 Aug 2007 14:50 GMT
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!
Paul G. Tobey [eMVP] - 27 Aug 2007 17:59 GMT
The input panel isn't made up of controls and doesn't accept the focus, so
tapping on it does nothing to the focus.

Paul T.

>I understand that.
>
[quoted text clipped - 6 lines]
>
> Thanks!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.