I Need to create a random number for a bank account. When the user presses the submit button after entering personal info a message box with their account number is supposed to appear( ex:"Your account number is 1000550") after the account number is created the user can go to a different tab click submit again and all the personal info the entered should appear in place of labels. First Name: John last name: Smith and then the number that was generated as the account number should appear in place of their account number label. It was easy for me to figure out how to put the users data they entered into the text boxes in place of labels but I cannot figure out how to take the random number and replace the label with the account number.

In addition Im using Visual Studios 2010 Windows form Application

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.