1
I have a Switch that according to the given status it plays an image, but I would also like to play the numbering of that status in the image (that text that usually when we touch the image it appears). I wonder if there is any property that does this. Follow the code I made.
switch (codParc)
{
case 1:
imgStats.ImageUrl = "../images/yellowStatus.png";
break;
case 2:
imgStats.ImageUrl = "../images/yellowStatus.png";
break;
case 4:
imgStats.ImageUrl = "../images/greenStatus.png";
break;
default:
imgStats.ImageUrl = "../images/neutralStatus.png";
break;
}
To get a sense of what the image has to present, it would be more or less that:
Webforms, WPF. Winforms, MVC?
– Jéf Bueno
@jbueno Webforms
– Daniel Nicodemos
@Danielnicodemos, which component you are using to set the image?
– Pedro Filipe
@Danielnicodemos you mean Tooltip?
– Marconi
@Pedrofilipe I am using the System.Web.UI.Webcontrols library of the Image class and Drawing.
– Daniel Nicodemos
@Marconi This is my question, which is the library to play a text in the image, similar to the logic I’m using there. For example: imgStats.Imageurl ="..."; imgStats.Imagetext ="blablabla"; break; I don’t know if Tooltip meets this condition. If satisfied, tell me how please :)
– Daniel Nicodemos
@Danielnicodemos the Example given by Diéfani can help you.
– Marconi