Numeric text box

  • Thread starter Thread starter Sai
  • Start date Start date
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
 
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.
 
Where may I find the .NET CF Core Reference? A search on
MSDN does not provide a link.

Thank You.
 
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
|
|
|
 
Back
Top