Solved

aligning text in msmasked box

Posted on 1998-03-10
1
271 Views
Last Modified: 2010-08-05
Anyone out there knowing how to center or right aling text (ex.:   1.25) without having to
 use «_» as literal in the prompt char field?

There is one routine that permits to right align currency without using literals but when
the control looses focus it automatically re-align itself to the of the maskedbox.

How do I prevent that ? (I want the text to stay right align when I move to the next
maskedbox !)

Thanks for the help


elphege
0
Comment
Question by:sympatico
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
Anita030598 earned 100 total points
ID: 1458801
I Don't know how the prompt char helps in aligning. But I know for Currency, setting the Format Property to
$#,##0.00;($#,##0.00) will give the right alignment as well.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month7 days, 23 hours left to enroll

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question