CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Format textbox

  1. #1
    Join Date
    Apr 2001
    Location
    USA
    Posts
    161

    Format textbox

    Hi,
    I d like to know how to have a format for a textbox
    for example, i want a textbox which contains only number like 0.00...so the user can t use caracter and if he push on "." he automaticly add the ciffer to the end of number...
    how can i format it? can i declare it or i have to do it all by myself?
    thx a lot

    ---------------------------------------------
    Sure i got it... what s a form again?

  2. #2
    Join Date
    Jul 2000
    Posts
    124

    Re: Format textbox

    You can look into using the masked edit text box.

    Hope this helps.
    Erica


  3. #3
    Join Date
    Apr 2000
    Posts
    737

    Re: Format textbox

    refer http://vblib.virtualave.net, there is a function AllowsOnlyFloat in the vbKeyboard which only allow user enter the floating point value, call the function in KeyPress event for the text box and it should do the rest.

    HTH


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured