Hey guys i making a fitness app and i need a form that shows images in a directory and i can drag it to a gid..
what should i be looking for?
Printable View
Hey guys i making a fitness app and i need a form that shows images in a directory and i can drag it to a gid..
what should i be looking for?
What kind of directory? A windows directory, eg a folder full of image files? If so, you can use the Directory.GetFiles method (possibly with a filter to filter out image files only) to get the filenames of each file in the specified directory.
Then you can create an Image object from each file using the Image.FromFile method.
To display an image you typically use a PictureBox, but this depends on what you want to do.
You say you want to drag it to a 'gid', with which I assume you meant 'grid'? What kind of grid? Do you mean like in windows explorer, where you get to see a thumbnail ('preview') of an image file? If so, you can use a ListView with its View set to LargeIcons for that. If you are thinking about another kind of grid then please elaborate.
well what i mainly want to do is have a drop dow or picture with each muscle group.when you select or click a muscle group you get a form with the images of the exercises to do on one side and a workout grid on the other.so basicly you drag the pic you need to the grid(mutliple boxes for about 10 exercises.)