TheCrafters001
TheCrafters001

Reputation: 327

How to use NotifyIcon

I have been working on Something for a bit now, and I was wondering how to use the NotifyIcon in Visual Basic. I already know the code here it is:

 Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Timer1.Start()
    NotifyIcon1.Visible = True
    NotifyIcon1.ShowBalloonTip(0)
End Sub

But I don't get a Notification/Balloon to show up. Can someone help?

Upvotes: 0

Views: 3895

Answers (2)

Rajan Shukla
Rajan Shukla

Reputation: 1

First Import using System.IO; then copy paste this code in a button

notifyIcon1.Icon = new ("warning-icon.ico")); notifyIcon1.Text = ""; :notifyIcon1.Visible = true;

        notifyIcon1.BalloonTipTitle = "Welcome to ";
        notifyIcon1.BalloonTipText = "Notify you for the use of this Software!!!";
        notifyIcon1.ShowBalloonTip(1000);

Upvotes: 0

TheCrafters001
TheCrafters001

Reputation: 327

I have figured it out. I now know that I need to use a Icon in order for a message "bubble" to appear. Thanks to all those who helped!

Upvotes: 1

Related Questions