?
Solved

formating a textBox

Posted on 2003-12-05
3
Medium Priority
?
363 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 400 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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 …
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses
Course of the Month11 days, 20 hours left to enroll

752 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