Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 3rd, 2005, 05:14 AM
Registered User
 
Join Date: Sep 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to naasfama
Default Problem in textbox validity....

hi; I want to apply precision formatting on my textbox; I've set to following things;
  1) user can't enter characters except "."
  2) maximum length is 7 characters i.e. "0000.00"
thing is how can I bound user to enter 4 digits on left side and 2 digit on right side
one can reply me @ [email protected] as well..!
t/c


F a z a l
A h m a d
 
Old September 6th, 2005, 01:02 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

too many questions in the same post:

1) Use the KeyPress event of the text box to discard the "." (or any other keys you want)
2) Use the MaxLength property of the text box, set it to 7
3) better to use two text boxes...

Marco
 
Old September 16th, 2005, 05:37 PM
Authorized User
 
Join Date: Nov 2004
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I susgest u following actions...

1.Use keyPress event to restrict the entry of alphabets.
2.Use Mid function to check all the characters of the text boxes.

it will make sure that entry would be according to your required methods....i hope it would help... if still not then you can contact me at [email protected]

tiyyob





Similar Threads
Thread Thread Starter Forum Replies Last Post
Form Textbox problem Simba Other Programming Languages 0 February 1st, 2007 05:44 PM
Problem with textbox chafor ASP.NET 1.0 and 1.1 Basics 1 January 12th, 2006 11:21 AM
textbox problem dr_luxure VB.NET 2002/2003 Basics 3 April 10th, 2005 03:33 PM
Checking User validity kumar_sampath Pro JSP 2 September 12th, 2004 04:12 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.