how to unfocus my Textbox.

pocket pc


  • 1. Session Initiation Protocol(SIP)
    Hello, all. Can any of you help me find out if there is any api for Session Initiation Protocol(SIP) for pocket pc or smartphone. and How can I use SIP for VoIP on Windows Mobile 5.0? Thanks.
  • 2. Adding context menu to CProg.exe (Phone app)
    Hi, Is it possible add a customized context menu to CProg.exe (Phone app) . example. Adding a new menuitem to on calllist. Thanks Venkat
  • 3. WinCE Registry query....
    All, When you install an app on a WM5 device, certain registry keys get created, viz, [HKEY_LOCAL_MACHINE\Software\Apps\MyApp] and [HKEY_LOCAL_MACHINE\Security\AppInstall\MyApp] In [HKEY_LOCAL_MACHINE\Software\Apps\MyApp], there are three name/value pairs namely Instl=1 InstallDir=\SD Card\MyApp InstlDir=\SD Card\MyApp - What is the difference between InstallDir and InstlDir ? - Does InstallDir stand for the keyword InstallDir which was used to make the cab file ? Does InstlDir stand for the actual location where the app was installed ? My cab file was created with the value InstallDir=\MyApp Appreciate a reply. Thanks, Vino.
  • 4. how can i set a application running when mobile device start?
  • 5. MAPI Properties!
    HI , I need some information of BLOB property in the cemail.vol ,i find it in MAPI Properties of MSDN ,but the MSDN don't seems to have any records ! Why ? Where can I find the introductions about BLOB property ? Please Help ! Thanks, Leroy Xie

how to unfocus my Textbox.

Postby QXJ2IENhcnNlbg » Thu, 11 May 2006 21:21:01 GMT

Hi ppl.
I have made this small program that will open up a small window each time i 
focus a textbox, and writes different lines of text depending on the 
selection in the popup.

But I can't find a way to unselect or unfocus the textbox after I've 
triggered the GorFocus-funktion. And I don't want to select an other object 
in the window either...

I guess I've just missed the function.... *silly me*....
Anyone cares to enlighten me? =)


Re: how to unfocus my Textbox.

Postby Sai » Thu, 11 May 2006 23:12:24 GMT

Are you handling your GotFocus handler yourself ? then at the end of
handler you can try to set the focus back to the main window.
SetFocus()... if you are working with C++ you can take a look at
handling EN_SETFOCUS for the edit control.


Re: how to unfocus my Textbox.

Postby QXJ2IENhcnNlbg » Sat, 13 May 2006 19:29:01 GMT

Thanx.. =)

Similar Threads:

1.Pocket PC: VS2005 does not allow set proper size to TextBox control


VS2005, CF2.0, Pocket PC project(2003 or 5.0).

According to Pocket PC UI Guidelines TextBox should have:
- 9pt Tahoma font
- 20px height

The problem is that I cannot change TextBox size to 20 in designer,
it is always 21.

Is it a bug?


2.Setting BackColor of TextBox in NumericUpDown control (PocketPC)


I try to set the backcolor property of a NumericUpDown control on PocketPC, 
but cannot seem to get it to work.
What I try to achieve is to set a diferent color when to control has focus.
Easy enough with TextBoxes, but I'm strugling with the NumericUpDown 

The code I try to use is something like this (I've tried different indexes 
in the control collection) :
  private void numKM_GotFocus(object sender, System.EventArgs e)
   NumericUpDown ctrl = (NumericUpDown)sender;
   ctrl.Controls[1].BackColor = colFocus;
What happens is I get a 'System.ArgumentOutOfrangeException'.
Debugging shows that the Controls collection has Count of 0 on the ctrl 

Being a beginner, I'm stuck.

How do I change the backcolor of the TextBox in the NumericUpDown control?

Regards :-)

3.pocketpc textbox align

Hi all,

I start developing for pocket pc with C# under VS.NET 2003. I run into
trouble with the textbox settings.

On the form I have placed a textbox. I noticed that in the textbox
properties I have no possiblity to change the "TextAlign" propertie.
There is only "Left" available!

In the msdn I found the following code to change TextAlign:
textBox1.TextAlign = HorizontalAlignment.Center;

But it doesn't work :-( Is this by the design of .NET for pocket pc?
Or is there are way to change the alignment?

Any help would be appropriated. Thanks.

4.Increase Textbox width

On Wed, 16 Nov 2005 20:43:37 +0530, "Ram" < XXXX@XXXXX.COM >

>how we can incrase the width of the textbox in Pocket Internet explorer. It
>always displaying in same width even specifying the width to 100%.

Usually it will try to render a "width" based on a fixed width
character set - see the HTML4 specifications. 

So have you tried following those ? 

<input name="aa" id="aa" type="text" size="32" maxlength="120"
value="" />

>Enter name <br>
><input name=aa type=text width="100%">
>Thanks in advance.

5.error al asignar valor a un textbox

Hola a todos:
    Tengo un problema con un error estoy asigando un valor a un textbox
procedente de un sqlcedatareader, una vez leido el registro se lo asigno a
la propiedad text y me da el siguiente error "no data exist for the

    Muchas gracias por adelandado,

AMP 100

6. textbox

7. disabled textbox

8. set focus to textbox control

Return to pocket pc


Who is online

Users browsing this forum: No registered users and 40 guest