Prepare for your Next Interview
This is a discussion on Display leading and trailing zeros within the VB.NET forums, part of the Software Development category; Hi all , In my form how could i display zeros whein my focus lost a text box. if there are no enteries in last text box, if enteries there in ...
|
|||
|
Display leading and trailing zeros
Hi all ,
In my form how could i display zeros whein my focus lost a text box. if there are no enteries in last text box, if enteries there in the text box autoamatically .00 has to appear along with the interger value entered in the text box |
| Sponsored Links |
|
|||
|
Re: Display leading and trailing zeros
Even though it is bit a lengthy process the alternate way is
Dim d1 As Decimal = Trim(TextBox1.Text) Dim d2 As Decimal = "0.00" Dim d3 As Decimal d3 = d1 + d2 TextBox1.Text = CStr(d3) |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| I can't see any display | suman.solaris | Sun Certification | 0 | 09-11-2007 04:47 AM |
| which one is best to display records? | psuresh1982 | SQL | 2 | 05-11-2007 10:47 AM |
| Modification : zeros | smart_coder | Brainteasers | 4 | 01-25-2007 06:32 PM |
| zeros... | jamesravid | Brainteasers | 1 | 09-08-2006 05:49 AM |
| Query with SQL Leading Zero | timmy | SQL | 2 | 07-17-2006 05:32 PM |