View Single Post
  #1 (permalink)  
Old 09-23-2008, 3:33 AM
stresss stresss is offline
VB.NET Forum Newbie
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Aug 2008
Posts: 21
Reputation: 22
stresss is on a distinguished programming path ahead
Default How to Auto Generate ID number

Hi all!

I have a question about how to auto generate the next id number.

In my form, I have 5 radiobuttons and one Message ID textbox. When I click on the first radiobutton, the number 1000 will appear in the MsgID textbox, so what I want to achieve is when 1000 is used, and when i close my form and open again, and select the 1st radiobutton, it will show 1001 instead of 1000. Also when I select the 2nd radiobutton, the number 2000 will appear in the MsgID textbox, so likewise how do I get the next available id when 2000 is used?

Thank you very much in advance!!!
Reply With Quote