Results 1 to 3 of 3

Thread: [RESOLVED] [2008] Format a text box

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2001
    Posts
    134

    Resolved [RESOLVED] [2008] Format a text box

    Hi
    how can I format one text box to currency?

  2. #2
    Frenzied Member stimbo's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,739

    Re: [2008] Format a text box

    If you had this for example:

    vb Code:
    1. Dim myMoney As Decimal = 23.24
    vb Code:
    1. 'for local currency - so for me this would be UK Sterling, £23.24
    2. Textbox1.text = myMoney.toString("C")
    vb Code:
    1. 'If you want a different currency other than your local currency (if i wanted dollars for example):
    2. Me.TextBox1.Text = myMoney.ToString("$00.00")
    Stim

    Free VB.NET Book Chapter
    Visual Basic 2005 Cookbook Sample Chapter

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Dec 2001
    Posts
    134

    Re: [2008] Format a text box

    It worked Thanks

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