| | |
how to come out the pic randomly in picture boxes?
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
•
•
hello,
I wana show the cards in randomly from the array when I click the start button. ex: I have 12 picture boxes. and if click the button , the randomize cards come out to those boxes. How should I do ? :eek:
use the randome->next function, have a function to check to see whether or not the number generated or not has been used, so you would probably want an array that was 12 long (0-11) to store each random number as it was generated.
if the number generated matches a number in the array generate another and check again, if not break out and allow the random image to be placed.
hows that?
i've done it before but with random letters that i generated for a game i wrote.
Dont forget to spread the reputation to those that deserve!
![]() |
Similar Threads
- picturebox (Visual Basic 4 / 5 / 6)
- Multiple images to a single bmp/jpg image (Visual Basic 4 / 5 / 6)
- improve events speed (C#)
- Need Help with a function... (Visual Basic 4 / 5 / 6)
- Can't get samba to work! (*nix Software)
- Adding pictures (Visual Basic 4 / 5 / 6)
- Pictureboxes in C (C)
Other Threads in the C# Forum
- Previous Thread: checkbox in datagridview c#
- Next Thread: HOWTO: Share an SQL Connection between multiple forms within the same project
| Thread Tools | Search this Thread |
.net access algorithm array barchart bitmap box broadcast c# check checkbox client combobox control conversion csharp custom cyclethruopenforms data database datagrid datagridview dataset date/time datetime degrees development draganddrop drawing encryption enum event excel file filename finalyearproject form format forms function gdi+ getoutlookcontactusinfcsvfile gis globalization gtk httpwebrequest image index input install installer java label list listbox mandelbrot math mono mouseclick mysql operator panel path photoshop picturebox pixelinversion post programming radians regex remoting richtextbox save server silverlight sleep socket sql sql-server statistics stream string table text textbox thread time timer timespan update usercontrol users validate validation visualstudio webbrowser windows winforms wpf xml





