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

Posted by SHAHAB UDDIN under C# on 5/21/2012 | Points: 10 | Views : 1275 | Status : [Member] | Replies : 8
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.





Responses

Posted by: Sakthi.Singaravel on: 5/21/2012 [Member] Silver | Points: 25

Up
0
Down
please giv explain in detail..

Regards,
Singaravel M

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

Posted by: SHAHAB UDDIN on: 5/21/2012 [Member] Starter | Points: 25

Up
0
Down
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. | Alert Moderator

Posted by: Sakthi.Singaravel on: 5/21/2012 [Member] Silver | Points: 25

Up
0
Down
Refer this link..

http://www.codemiles.com/csharp-examples/put-image-on-button-in-c-t3276.html

Regards,
Singaravel M

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

Posted by: Sakthi.Singaravel on: 5/21/2012 [Member] Silver | Points: 25

Up
0
Down
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. | Alert Moderator

Posted by: Sakthi.Singaravel on: 5/21/2012 [Member] Silver | Points: 25

Up
0
Down
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. | Alert Moderator

Posted by: SHAHAB UDDIN on: 5/22/2012 [Member] Starter | Points: 25

Up
0
Down

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. | Alert Moderator

Posted by: SHAHAB UDDIN on: 5/22/2012 [Member] Starter | Points: 25

Up
0
Down
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. | Alert Moderator

Posted by: Anbuselvanit on: 5/22/2012 [Member] Starter | Points: 25

Up
0
Down
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. | Alert Moderator

Login to post response