Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27229

VS 2010 Textbox_leave to multiple textboxes

$
0
0
Hi all i have the following which works good on the dtb1.text but i have 23 textboxes i need it to do the same for. I just want the data input to be changed to currency in all textboxes.

dtb1, dtb2, dtb3 and so on up to 23

Code:

Private Sub dtb1_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles dtb1.Leave

        dtb1.Text = CDec(dtb1.Text).ToString("c")

    End Sub

Can anyone help pleaaaase :)

Chris

Viewing all articles
Browse latest Browse all 27229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>