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:

image_upload

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

browse_code

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

Save_Code

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:

form2

The Code for the Form_load event is shown below:

Form2_Load

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

selectedindex_item_Changes

The output of the above code is show below as:

output_form1

Form2 will be displayed as:

output_Form2

output_form2_@

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

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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