Hi How to add image button in coding side in literal?
In literal i have a string with that i want to add a image button?
How to add image button in coding side
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Benjamin KemnerRank #7,492 · 240 reputationPosted Jul 31, 2011, 10:29 PM EDT
Do you have an image url to use in button like "C:\temp\test.jpg" or "http://www.example.com/test.jpg"?
anjumathi kumar54 reputationPosted Jul 31, 2011, 10:37 PM EDT
Benjamin KemnerRank #7,492 · 240 reputationPosted Jul 31, 2011, 11:07 PM EDT
btTest.Image = Image.FromStream(new FileStream(@"D:\Temp\Chrysanthemum.jpg", FileMode.Open));
this.Controls.Add(btTest);
Benjamin KemnerRank #7,492 · 240 reputationPosted Aug 1, 2011, 9:09 PM EDT