Numeric text box

S

Sai

Hi Group,

I am looking for some pointers on how to implement a numeric only text box
on the PPC. I found some sample code in the .Net Compact Framework core
reference book but it does not work correctly for me.

Thanks

Sai
 
M

Maarten Struys

Can you be more specific about the problems you ran into? Did you try
running the .NET CF Core Reference Chapter 18 sample (using the
CustomControlDemo solution)? In that sample the numeric text box works fine
for me on a 4.1 emulator.
 
S

sdf

Where may I find the .NET CF Core Reference? A search on
MSDN does not provide a link.

Thank You.
 
A

Anthony Cangialosi [MS]

Hello Sai, a quick solution to get you up and running would be to inspect
the Text Property of your text box on each TextChanged event to make sure
the string has only numeric characters.

Drop your text box onto your form. Double click on the text box to bring up
the code editor w/ the correct Event handler. Here you can look at the
TextBox1.Text property and verify it's contents for whatever you want it to
be.


Sincerely;
Anthony Cangialosi

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Reply-To: "Sai" <[email protected]>
| From: "Sai" <[email protected]>
| Subject: Numeric text box
| Date: Fri, 11 Jul 2003 08:48:04 -0700
| Lines: 11
| Organization: Lumedx
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: 12.46.52.61
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:28004
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Hi Group,
|
| I am looking for some pointers on how to implement a numeric only text box
| on the PPC. I found some sample code in the .Net Compact Framework core
| reference book but it does not work correctly for me.
|
| Thanks
|
| Sai
|
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top