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 January 9th, 2008, 09:37 AM
Authorized User
 
Join Date: Oct 2007
Posts: 46
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via MSN to debbiecoates
Default masked edit control, alighnment

Hello

my user will type a number into a text box, ie 12300, i want that to display as 12,300. I can get vb to display the number like this using a masked edit control but unfortunately the alignment of the text using a masked edit is left justify, rather than right justify, Does anyone know how I can get it to show the text with a right justify, or, barring this, if i was to programme it,on which even would i call the function? =I know in ms access i could use the afterupdate event, but there doesn't seem to be one in vb.

I am using vb6

 
Old January 9th, 2008, 09:40 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hi there.. you have other events to look up.. try with key press (you will be formating while the user enter data), lostfocus...

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========





Similar Threads
Thread Thread Starter Forum Replies Last Post
Masked Edit Control dhoward VB.NET 2002/2003 Basics 0 December 21st, 2006 12:00 PM
Masked Edit control dhoward VB.NET 2002/2003 Basics 0 November 13th, 2006 01:47 PM
Form view control, Authorized edit only nuttylife2 ASP.NET 2.0 Professional 0 July 10th, 2006 07:57 PM
How to load image Edit control cyberrider VB How-To 1 November 4th, 2005 02:25 PM
Edit text in ListView control pavel Pro VB 6 4 September 29th, 2004 02:32 AM





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