Use Linklabel image to get onclick event with out any text
Question
I have an linklabel in C# winforms. It has no text but it has an image as background. Is there any way i can use the image as hyperlink to trigger the onclick event?
I have searched a lot and all i could find was only text manipulations (like put the text to transparent..etc). Is there a way around without actually using text? Also if i can get a tooltip for linklabel.. it will be more helpful.
I hope this question is not too mainstream(i am new to C#).
Solution
You can use button
with a image
in it and make its properties as FlatStyle:Flat
to give a look as ImageLink
or else use PictureBox
and
To show Tooltip, you can use Tooltip
tool which invokes a new property in button
or PictureBox
.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow