- Messages
- 29
- Reaction score
- 0
- Points
- 26
Please help po sa mga master dyan. newbie pa kasi sa programming
Ito po problem ko
When i input 5 or more digit may bug po kasi.
example: if i input 12345 dapat output nya is 12,345
sa akin kasi ang automatic output is 51,234
NOTE: isang textbox lang gagamitin wala ng button tapos automatic po comma po sya pag > 999
this is my code:
Private Sub menu_input_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load, txt_wof1.TextChanged
dim val1 as double
val1=val(txt_wof1.text) ''''txt_wof1.text name of my textbox
If val1 > 999 Then
txt_wof1.text = val1.ToString("#,###,###") '''na try ko na "N" or "N2"
end if
end sub
Ito po problem ko
When i input 5 or more digit may bug po kasi.
example: if i input 12345 dapat output nya is 12,345
sa akin kasi ang automatic output is 51,234
NOTE: isang textbox lang gagamitin wala ng button tapos automatic po comma po sya pag > 999
this is my code:
Private Sub menu_input_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load, txt_wof1.TextChanged
dim val1 as double
val1=val(txt_wof1.text) ''''txt_wof1.text name of my textbox
If val1 > 999 Then
txt_wof1.text = val1.ToString("#,###,###") '''na try ko na "N" or "N2"
end if
end sub