Hi,
I m new to vb.net. i need help.
How can I increment a number in a textbox everytime when the form is loaded?
Suppose Customer_id
I want that first time when the form gets loaded Customer_id should appear in the textbox as CDD01.
Second time it should appear as CDD02.
Third time CDD03 and vice versa.
Please help.

Recommended Answers

All 4 Replies

You are missinjg some data here:

Is this the main form of a project?

Are you counting times the program has run, or times the form is loaded during a single run?

Are you connecting to a database where a value could be saved?

Are you counting for one instance of a program or for multiple instances on multiple machines on multiple networks?

You get the idea, we need you to be specific as to what you are trying to do.

using database?what a database?

dis is what i want..same condition.
did u get the solution??plz i need ur help..

Hi,
I m new to vb.net. i need help.
How can I increment a number in a textbox everytime when the form is loaded?
Suppose Customer_id
I want that first time when the form gets loaded Customer_id should appear in the textbox as CDD01.
Second time it should appear as CDD02.
Third time CDD03 and vice versa.
Please help.

dis is what i want..same condition
did u get the solution??plz i need ur help..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.