Solved

formating a textBox

Posted on 2003-12-05
3
362 Views
Last Modified: 2010-05-03
How can I formating a textbox?
In MsAccess the textboxes have a format property, how is it possible to do the same job in VB?
0
Comment
Question by:SaadDani
[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
  • 3
3 Comments
 
LVL 15

Expert Comment

by:JackOfPH
ID: 9880942
Private Texbox1_Change()

textbox1.text = Format(Textbox1.text, "Your format string")

end sub

Example of format string : Format (Textbox1.text, "hh:mm:yyyy") .
0
 
LVL 15

Accepted Solution

by:
JackOfPH earned 100 total points
ID: 9880960
use the masked edit box control! it has a po\roperty of fprmating text!
0
 
LVL 15

Expert Comment

by:JackOfPH
ID: 9880961
use the masked edit box control! it has a po\roperty of formating text!
0

Featured Post

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

707 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