Click here to Skip to main content
16,012,821 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to make a simple interface for my stampcollection.
I like the appearance of the DataGridView, and want to be able to click a record in the grid, and make this event show a specific picture in a picturebox on the form.
To solve this I need help with at least theese items:
1. How do I , when adding records, save pictures to an image catalogue known by the application? I guess I shold use an OpenFileDialogue? Typical situation is that many pictures will have the name "einstein", that is, how can the application automaticly add a discriminating numbre to the file name?
2. How do I connect the SciphiDataGridView.CurrentRow.Index to the correct image?

Thanks a lot in advance.

Magnus
Posted

1 solution

Can I suggest you look at this article :

http://www.dreamincode.net/forums/topic/74114-a-really-simple-database

Its deals with adding and viewing images to a MS-SQL Server or Access Database using "OpenFileDialogue" and VB.net. You can easily modify the example to suit your application.

Hope it can help
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900