Geeks Talk

Prepare for your Next Interview




Display leading and trailing zeros

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 ...


Go Back   Geeks Talk > Software Development > VB.NET

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 01-29-2008
Junior Member
 
Join Date: Jun 2007
Location: HYDERABAD
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
sriram_tvs is on a distinguished road
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
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-04-2008
Moderator
 
Join Date: Jun 2007
Location: Bangalore,India
Posts: 1,432
Thanks: 8
Thanked 125 Times in 112 Posts
debasisdas will become famous soon enoughdebasisdas will become famous soon enough
Re: Display leading and trailing zeros

You need to format the values in the textbox for the purpose on the lost focus event of the control.
Reply With Quote
  #3 (permalink)  
Old 02-04-2008
Junior Member
 
Join Date: Nov 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
knowledgebalaji is on a distinguished road
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)
Reply With Quote
  #4 (permalink)  
Old 02-13-2008
Junior Member
 
Join Date: Feb 2008
Location: bangalore
Posts: 18
Thanks: 0
Thanked 2 Times in 1 Post
venkat.rbs is on a distinguished road
Re: Display leading and trailing zeros

what r the isolation levels in sql server2000..
Reply With Quote
Reply

  Geeks Talk > Software Development > VB.NET


Thread Tools
Display Modes


Similar Threads

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


All times are GMT -4. The time now is 09:04 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved