Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


text box issues


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-11-2008, 04:29 PM
gjoisa's Avatar
Knows the basics
 
Join Date: Feb 2008
Location: Udupi , India
Posts: 57
Default text box issues

Hi,
how to restrict the textbox input value to numeric and input string length ?
Reply With Quote
  #2 (permalink)  
Old 05-11-2008, 04:38 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,463
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Simpler way is to check if the string is made only of numbers, and to check the lenght of the entered string...
But that is only done on the text changed event...
To restrick the input itself, I guess some workaround is possible, but a custom DLL would be more eficient...
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

DLL Version Listing
Reply With Quote
  #3 (permalink)  
Old 05-11-2008, 04:58 PM
gjoisa's Avatar
Knows the basics
 
Join Date: Feb 2008
Location: Udupi , India
Posts: 57
Default

it can not solve my problem . Previously i had devoloped a program for palm . There is such facility , we can restrict the input to numeric and string length .
Reply With Quote
  #4 (permalink)  
Old 05-11-2008, 05:02 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,463
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

I will try to make a simple dll... Any more desires, text box wise?

Forgot to ask, are targeting the device, the desktop, or both?
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

DLL Version Listing
Reply With Quote
  #5 (permalink)  
Old 05-11-2008, 05:15 PM
Senior Member
 
Join Date: May 2007
Posts: 132
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by Cableguy View Post
Simpler way is to check if the string is made only of numbers, and to check the lenght of the entered string...
But that is only done on the text changed event...
To restrick the input itself, I guess some workaround is possible, but a custom DLL would be more eficient...
Hi gjoisa, as cableguy mentioned solutions, we have already discussed this here.TextBox Input Filter?
__________________
Rioven

Sony Ericsson XPERIA X1i WM6.1
480x800 Display Resolution
with QWERTY keyboard
Reply With Quote
  #6 (permalink)  
Old 05-11-2008, 05:22 PM
gjoisa's Avatar
Knows the basics
 
Join Date: Feb 2008
Location: Udupi , India
Posts: 57
Default

i am targetting only device .
Reply With Quote
  #7 (permalink)  
Old 05-11-2008, 05:58 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 672
Default

Hello gjoisa,

just have a look at filippos fgControls.dll (fgControls-Library).

The feature fgTextBox allows you to define an input mask for a textbox so the user can only enter data of a special length or fomat.


specci48
Reply With Quote
  #8 (permalink)  
Old 05-11-2008, 06:11 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,463
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

I was almost sure that the wheel had already been invented....But still I was going for it...
Now I see there's no need...

Have fun gjoisa
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

DLL Version Listing
Reply With Quote
  #9 (permalink)  
Old 05-11-2008, 06:16 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 672
Default

Quote:
Originally Posted by Cableguy View Post
I was almost sure that the wheel had already been invented....But still I was going for it...
... sometimes it may be good to have an alternative ...
Reply With Quote
  #10 (permalink)  
Old 05-12-2008, 07:18 AM
gjoisa's Avatar
Knows the basics
 
Join Date: Feb 2008
Location: Udupi , India
Posts: 57
Default

Thank you Specci48 and CableGuy . Very good solution . It solved my problem . Thank you again for your timely response .
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Text an einen bereits bestehenden Text "anhängen" JOTHA German Forum 7 09-12-2008 02:08 PM
Timing issues leestevens Questions & Help Needed 1 08-08-2008 07:22 PM
Label/Text Control text centering TWELVE Basic4ppc Wishlist 1 06-04-2008 04:20 PM
Hardware Lib related issues Cableguy Questions & Help Needed 11 03-23-2008 03:40 PM
Source Code Form Issues Louis Questions & Help Needed 3 06-16-2007 09:17 PM


All times are GMT. The time now is 05:31 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0