|
-
Jan 18th, 2010, 01:45 PM
#1
Thread Starter
Member
image list
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?
-
Jan 18th, 2010, 01:56 PM
#2
Re: image list
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.
-
Jan 18th, 2010, 02:16 PM
#3
Thread Starter
Member
Re: image list
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.)
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
|