how you could make a text appear by hovering over a picturebox [closed]

0

could someone please help me I think the picturebox event mouse hover is used, but I do not know how to use it, please help

    
asked by Fabio Rodriguez 11.06.2017 в 00:11
source

1 answer

-1

You do not have to do it in the MouseHover event. You can assign a ToolTip object to the PictureBox control at any time.

For example, you could do it in the form's own constructor. Always after the call to InitializeComponent to make sure that the PictureBox has been created:

public Form1()
{
    InitializeComponent();
    var tt=new ToolTip();
    tt.SetToolTip(pictureBox1, "Texto a mostrar");
}
    
answered by 11.06.2017 / 00:31
source