Congratulations to all the winners of April 2013, they have won INR 3400 cash and INR 20147 worth prizes !
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 10196 |  Welcome, Guest!   Register  Login
 Home > Forums > C# > please answer ,i am new in C# . ( show a image & it name ) ...
SHAHAB UDDIN

please answer ,i am new in C# . ( show a image & it name )

Replies: 8 | Posted by: SHAHAB UDDIN on 5/21/2012 | Category: C# Forums | Views: 463 | Status: [Member] | Points: 10  


Dear friend ,
How can i do to show a image & it name when i Click a word button in windows form in C# but this name & image wii take in data_base or file ?.
Example :
A = Name : Apple , Image : Apple's image
B= Name : Boll , Image : Boll''s image
Please help me .
Note :
apple & ii's image
boll & ii's image
will stay in database or .exe file
ONLY Button A ,B ,C show in windows form.


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Sakthi.Singaravel
Sakthi.Singaravel  
Posted on: 5/21/2012 10:37:07 PM
Level: Silver | Status: [Member] | Points: 25

please giv explain in detail..

Regards,
Singaravel M

SHAHAB UDDIN, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

SHAHAB UDDIN
SHAHAB UDDIN  
Posted on: 5/21/2012 11:12:24 PM
Level: Starter | Status: [Member] | Points: 25

How can i do to show a image & it name when i Click a word button in windows form in C# ?.
Example :
A = Name : Apple , Image : Apple's image
B= Name : Boll , Image : Boll''s image
Please help me .

SHAHAB UDDIN, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Sakthi.Singaravel
Sakthi.Singaravel  
Posted on: 5/21/2012 11:26:02 PM
Level: Silver | Status: [Member] | Points: 25

SHAHAB UDDIN, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Sakthi.Singaravel
Sakthi.Singaravel  
Posted on: 5/21/2012 11:39:20 PM
Level: Silver | Status: [Member] | Points: 25

private void button1_Click(object sender, EventArgs e)

{
using (OpenFileDialog dlg = new OpenFileDialog())
{
dlg.Title = "Open Image";
dlg.Filter = "bmp files (*.bmp)|*.bmp";
if (dlg.ShowDialog() == DialogResult.OK)
{
PictureBox PictureBox1 = new PictureBox();
PictureBox1.Image = new Bitmap(dlg.FileName);
}
}
}

Regards,
Singaravel M

SHAHAB UDDIN, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Sakthi.Singaravel
Sakthi.Singaravel  
Posted on: 5/21/2012 11:39:59 PM
Level: Silver | Status: [Member] | Points: 25

This article is very nice see this...

http://www.devasp.net/net/articles/display/385.html

Regards,
Singaravel M

SHAHAB UDDIN, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

SHAHAB UDDIN
SHAHAB UDDIN  
Posted on: 5/22/2012 1:25:43 AM
Level: Starter | Status: [Member] | Points: 25


How can i do to show a image & it name when i Click a word button in windows form in C# ?.
Example :
A = Name : Apple , Image : Apple's image
B= Name : Boll , Image : Boll''s image
Please help me .
Note : apple & ii's image
boll & ii's image
will stay in database or .exe file

SHAHAB UDDIN, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

SHAHAB UDDIN
SHAHAB UDDIN  
Posted on: 5/22/2012 1:37:35 AM
Level: Starter | Status: [Member] | Points: 25

Dear friend ,
How can i do to show a image & it name when i Click a word button in windows form in C# but this name & image wii take in data_base or file ?.
Example :
A = Name : Apple , Image : Apple's image
B= Name : Boll , Image : Boll''s image
Please help me .
Note :
apple & ii's image
boll & ii's image
will stay in database or .exe file
ONLY Button A ,B ,C show in windows form.

SHAHAB UDDIN, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Anbuselvanit
Anbuselvanit  
Posted on: 5/22/2012 8:17:33 AM
Level: Starter | Status: [Member] | Points: 25

hi!
first you have to create a folder, in which paste the images you have for apple and boll.
In form you have to place a picture or image control.
Then place button name it as A, when you click that button set the image path + image name from data base.
Before all of this create a table with letter and image columns.
In letter column insert A and in image column insert image name with .jpg

ANBUSELVAN A C

SHAHAB UDDIN, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Reply - Please login to reply


Click here to login & reply

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/19/2013 5:05:33 PM