Pregunta

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#).

¿Fue útil?

Solución

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top