Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Text Box
Message
 
 
À
05/03/2002 03:15:26
Ashish Patel
Hindustan Petroleum
Mumbai, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00628249
Message ID:
00628252
Vues:
11
Hi!

You have to add the character manually to the textbox.value property, set the SelStart property to position where cursor should be (and also use this property to insert characters). Then use NODEFAULT command inside of the KeyPress event to disable default behaviour of any keys pressing. Levae backspace alone - just exit KeyPress event without any command or actions for backspace, and it will probably work properly.

>Hi
>
>I want to display someother characters as soon as user keys-in.
>
>E.g. If user keyis in "A" it should give "X".
> For "B" it should display "Z"
>
>This is because I want to create a text box which displays indian font.
>And when user's key's in "A" I will capture "A" and related character will
>be displayed in text box.
>
>In this How I will be able to take care of Backspace ?
>
>I tried kypress Event.
>But it doesn't work properly.
>
>Thanks in Advance.
>
>Ashish
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform