Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi

 

I've been wanting to programmatically show a tooltip over an object on my forms, similarly to how the XP Balloon Tip appears on the task tray.

 

Has anyone achieved this?

 

I've seen a lot of work on the BalloonTip control by Peter Rilling, but this covers a lot more functionality than I'm looking (plus I program in VB!)

 

Any thoughts appreciated.

David.

Posted

woops, just read off of this one.

 

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Dim TheForm As New Form()

Dim TheLabel As New Label()

TheForm.Controls.Add(TheLabel)

TheLabel.Text = "This is just a test."

TheForm.FormBorderStyle = FormBorderStyle.None

TheForm.Width = 80

TheForm.Height = 20

TheLabel.Location = New Point(0, 0)

TheForm.TopMost = True

TheForm.ShowInTaskbar = False

TheForm.Show()

TheForm.Location = New Point(Me.Location.X + Button1.Location.X, Me.Location.Y + Button1.Location.Y)

End Sub

 

You should probably spend more time jazzing the form up, but thats just about the best i can do for you (i'm pretty new at vb.net). Hope this helps!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...