Hello everyone,
I'm trying to put an image for my memory game which contains many pictures of flags.
Hoe do i start the code (It's the first layer)
array?
what do you think?
would like to get your advise.
Thanks,
Danielle.
Hello everyone,
I'm trying to put an image for my memory game which contains many pictures of flags.
Hoe do i start the code (It's the first layer)
array?
what do you think?
would like to get your advise.
Thanks,
Danielle.
The short (unhelpful) answer is to start with
Public Class Form1
The perhaps more helpful answer is to add an ImageList control to your form and add all of the flag pictures. If you keep all of the flags in a particular folder then you can scan the folder at run time and add them to the ImageList as
imlFlags.Images.Add("Belgium", New System.Drawing.Bitmap("e:\temp\Belgium.JPG"))
Where imlFlags is an ImageList control. Then to display that flag you do
PictureBox1.Image = imlFlags.Images("Belgium")
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.