-2
I have a table with 4 Image fields. I put a pictureBox and in the properties Data, in Databindings, Inkei it with one of the fields of the table, the field image1, when executing the program is bringing right the image of the field image1 of the table. So it can make changes, draw or delete and when clicking save, it will save the changes in the field of the table to which it is linked "image1".
How do I make the user, when clicking a button, change which field of the table this pictureBox is linked to? For example, if you click on button 2, pictureBox shows the image that is in field image2 of the table, and any changes made, when clicking save, will already be saved in "image2".
I’m using the visual studio’s local database, just dragging and dropping the fields from the "Datasources" panel. I don’t use any sql code.
but as the source of the picturebox ?
– Rovann Linhalis
I selected the pictureBox. Ai la in the properties window of the visual studio clicked on Databindings, it opens a screen where I chose my table, ai shows all the fields of this table, and I chose "image1".
– Brugo