Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
All-Star
41108 Points
6019 Posts
Apr 15, 2012 04:08 PM|LINK
shabnam2012 how to create a counter that every time formloade create a code such as this 00001
how to create a counter that every time formloade create a code such as this
00001
Declare counter variable as int, while for UI you can format like this..
int counter = 1; Label1.Text = counter.ToString("00000"); //it will print 00001
budugu
All-Star
41108 Points
6019 Posts
Re: how to create increamental code with five digit
Apr 15, 2012 04:08 PM|LINK
Declare counter variable as int, while for UI you can format like this..
int counter = 1; Label1.Text = counter.ToString("00000"); //it will print 00001"Don't be afraid to be wrong; otherwise you'll never be right."