Quantcast
Viewing all articles
Browse latest Browse all 27081

ToolTip display with multiple forms

Hello,


I have 2 forms and I try to display a tooltip on the picturebox control on the form2.

In my main form (form1), I have a button

Code:

Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load

        Form2.Show(Me)

    End Sub

Private Sub MyButton_Click(sender As Object, e As EventArgs) Handles MyButton.Click
     
        Form2.ToolTip1.ShowAlways = True
        Form2.ToolTip1.Active = True
        Form2.ToolTip1.Show("my text", Form2.PictureBox1, 0, 0, 5000)


End Sub

On the form2, I have a picturebox component (PictureBox1) & a ToolTip component (ToolTip1)

I never got the ToolTip displayed on the pictureBox. Why ??

Isa

Viewing all articles
Browse latest Browse all 27081

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>