Skip to content
Advertisement

How to insert images of picture box which is created by for loop?

If user enters 5 this loop creates 5 pictureboxes

Here I have a click event for selecting image of each picture box

My question is…

How can I insert those images of pictureBoxes into SQL SERVER at once?

can anyone help ?

appreciate it.

Advertisement

Answer

If you have 5 picture boxes in your application and in your database table there are 5 columns to store image data then do as following demo code does

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement