Building Simple Web Application That Stores Image and Provide Viewability…

Assalamualaykum Wr Br…Today we explore the Simple Web Application which allows you to upload image, stores it in DB and finally provides another form which allows to select image which displays in pictureBox.

Lets Quick Start our tour by designing our Form as shown below:


The Browse Button_Click Event code can be demonstrate by the following image as shown below:


The Save Button_Click Event code can be shown in following image as:


The Photos Button creates an instance of the Form2 and calls object.Show method which populates Form2 in Action whose Design contains a ListBox Where Images which stored in DB are populated and based on the selection of the items in ListBox its corresponding image is displayed in PictureBox which is depicted in following images:


The Code for the Form_load event is shown below:


The code for the SelectedIndexChanged event of ListBox is shown below:


The output of the above code is show below as:


Form2 will be displayed as:



Alhamdulliah…Thats all For the Day…Keep Doing It till You Master!!!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s