|
-
Sep 11th, 2008, 03:22 PM
#1
Thread Starter
Member
[02/03] Randomizing and save/load system
Ok, first off, I'm fairly new to visual basic or visual studio, I can pick up code pretty easily though. I know I wrote a lot, but I was trying to give enough details...So thanks in advance for any help given.
My questions are:
How would I make a button that would randomize which picture shows up on a picture box or on a button so that it wouldn't always be the same. For example, with a game of memory that has a basic title screen with a "start button. Once that button is pressed, I would want it to randomize the pictures so that they wouldn't be in the same place all the time when "start" was pressed.
Secondly, I would like to know of a way to make it so that once a button was pressed, it would save a text or ".txt" file in a folder on a computer without actually showing the dialog box asking to save. This would be for a partial login system. So for instance, I pressed register and a new window comes up, I fill in that and press submit and it would save the text file with the user and password. Then I would want a load system that would locate that file once the user and pass are typed in, and if it finds it, then it will allow entry to the program.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|