How to Convert Number to Currency in Textbox Using VB.Net

0
98

This tutorial is all about How to Convert Number to Currency in Textbox Using VB.Net. In this post you will learn How to Convert Number to Currency in Textbox Using VB.Net.  So let’s get started:

  • First is open the Visual Basic, Select File on the menu, then click New and create a new project.

  • Then a New Project Dialog will appear. You can rename your project, depending on what you like to name it. After that click OK

  • Then design your form like this just like what I’ve shown you below
    Add a Label, 2 Textbox, and Button.
  • Add this code to the Convert Button:
  1. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  2. TextBox2.Text = FormatCurrency(TextBox1.Text, , , TriState.True, TriState.True)
  3. End Sub
  • After that, Click F5 to run the program.
    Output:

If you have any comments or suggestions about on How to Convert Number to Currency in Textbox Using VB.Net Please feel free to contact our webpage.

Download How to Convert Number to Currency in Textbox Using VB.Net Code here

 

Readers might read also:

Facebook Comments
(Visited 110 times, 1 visits today)

LEAVE A REPLY

Please enter your comment!
Please enter your name here