how to unfocus my Textbox.
by 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? =)
/Arv
Re: how to unfocus my Textbox.
by 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.
-Sai
Re: how to unfocus my Textbox.
by QXJ2IENhcnNlbg » Sat, 13 May 2006 19:29:01 GMT
Similar Threads:
1.Pocket PC: VS2005 does not allow set proper size to TextBox control
Hi,
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?
Thanks,
Tom.
2.Setting BackColor of TextBox in NumericUpDown control (PocketPC)
Hi,
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
control.
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
object...?
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 >
wrote:
>Hai,
>
>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="" />
><html>
><body>
>Enter name <br>
><input name=aa type=text width="100%">
></body>
></html>
>
>Thanks in advance.
>
>Ram.
>
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
row/colum".
Muchas gracias por adelandado,
AMP 100
6. textbox
7. disabled textbox
8. set focus to asp.net textbox control