|
-
Jul 6th, 2004, 04:23 AM
#1
Thread Starter
Lively Member
Need Help
i have a textbox and when the user key in 1000000
it will change the format to 10,000.00
and when user key in 1000050 it will help me to change the format to 10,000.50
can i know how to change the format ???? without click any button
===========================================
Private Sub gross_TextBox_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles gross_TextBox.TextChanged
gross_TextBox.Text = Format(Val(gross_TextBox.Text), "#,###.##")
taxable_TextBox.Text = Val(gross_TextBox.Text) + Val(bonus_TextBox.Text) - Val(children_TextBox.Text) - Val(personal_TextBox.Text) - Val(parent_TextBox.Text) - Val(epf_TextBox.Text)
End Sub
===========================================
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|