Replies |
please giv explain in detail..
Regards,
Singaravel M
SHAHAB UDDIN, if this helps please login to Mark As Answer. |
Reply | Alert Moderator
|
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
|
SHAHAB UDDIN, if this helps please login to Mark As Answer. |
Reply | Alert Moderator
|
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
|
SHAHAB UDDIN, if this helps please login to Mark As Answer. |
Reply | Alert Moderator
|
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
|
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
|
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
|