473,811 Members | 3,402 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to display a Random picture?

1 New Member
I am making a game. In the game there is a picture box and three buttons. A picture is supposed to pop up and the player is supposed to click the button that best suits the picture. if it is answered correctly another random picture is supposed generate. How can I do this
Jan 17 '11 #1
1 2310
Joseph Martell
198 Recognized Expert New Member
First: this sounds suspiciously like a homework question to me. Second: we are here to help you work past walls in a project you have already tried. Give us something to work with and we will gladly offer help.
Jan 18 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
6079
by: VenuGopal | last post by:
hi, i have a WELCOME screen. here i have a PICTURE BOX. there are 8 pictures that go into this Picture Box. At every 5 seconds i want to RANDOMLY load a new Picture. this is what i am using but it is not loading the new picture. Can any one help? public void Presentation_Load(object sender, System.EventArgs e)
1
1087
by: TC | last post by:
How can I make my ASP.NET app display a single different picture each day, instead of one every page load? Thanks
4
2761
by: tshad | last post by:
I am trying to set up an Image authorization where you type in the value that is in a picture to log on to our site. I found a program that is supposed to do it, but it doesn't seem to work. It should put a blue and yellow box on the page with "This is a test" as part of the picture. But what I get is a broken Gif. The other problem is that I can't view the source???? The view source is disabled for this page. What causes this?
1
1244
by: dal.luc | last post by:
Hello, I'ld like to know how it is possible to create (in asp) a random picture which will contain figures and letters. I want to use it when a client confirm his inscription on my site (just like when one sign in yahoo mail.) Does someone has an idea ? Thanks for your reply
2
2759
swatmajor1
by: swatmajor1 | last post by:
I have been creating a basic sodoku game as a school assignment. Basically to load a puzzle, a pre-set arrangment of numbers are loaded into a hidden picture box array called "Picsolution". What I want it to do is have random picture boxes in the array "PicQuestion" equal the matching picture boxes in the "Picsolution" Array. If anyone can help me it would be very Appreciated. Swatmajor1 PS please ignore any bad spelling
1
1442
by: philleep | last post by:
Hi, How do i do a random picture selector for a page in php. Basically i want to pic 3 pictures from a pool of 40 and display these on screen. Cheer, Philleep
10
3412
by: lifity | last post by:
hi, i am stuck on part of my project and very new to VB. i had cut my picture into 6 equals part but need to display them randomly, without repeating the same part of the pic again, in random sequence. eg, pic1,pic2,pic3,pic4,pic5,pic6 to ==> pic3,pic2,pic6,pic1,pic5,pic4 below are part of my code Dim theImage(0 To 7) As Object Dim myArray(0 To 7) As Object
2
1099
Ali Rizwan
by: Ali Rizwan | last post by:
Hello all, I have a main folder name IMAGES and have sub folders of that name A,B,C,.....,Z. And the sub folders contain images with name like in Folder A : Apple, Anchor etc and in B : Ball, Bear, Bat I have 4 Image controls. Now i want that when ever i write a letter in a text box it automatically put a random picture from sub folder. Like if i write G then it goes to folder G and then fetch a random picture and load that in one of the...
1
3815
oranoos3000
by: oranoos3000 | last post by:
hi would you please help me i have a online shopping center that i show pictures of the my product in home page. in the InterExplorer pictures is shown correctly but in Firefox browser is shown properties alt in img tag istead of picture . place of the pictures is saved in the database(my database is with mysql) and in home page i fetch properties of the product and address of place that pictures is located output of the code in the...
12
4381
by: Chrono Dark | last post by:
I have 12 picture boxes and I am calling a method called ShowDice() to show the image of the dice. Here is what I am doing exactly: - Generate a random number for 12 integers - Use a for loop to count which dice is being shown: for (int count = 1; count < 13; count++) {
0
9605
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10647
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10395
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9204
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7667
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5553
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5692
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4338
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3865
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.