Click here to Skip to main content
15,884,986 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
this is code don't work with my ,why?note : iam search online but don't find any thing about solve problem ...again what is problem with this under code...thank you...

What I have tried:

VB
Private Sub Form_Click()
NotifyIconCtrl1.Enabled = True
NotifyIconCtrl1.Visible = True
NotifyIconCtrl1.BalloonText = "rrr"
NotifyIconCtrl1.BalloonTitle = "eee"
NotifyIconCtrl1.BalloonIcon = Info

NotifyIconCtrl1.ShowBalloon

End Sub

Private Sub Form_Load()
Set NotifyIconCtrl1.Icon = Image1.Picture

End Sub
Posted
Updated 10-Jun-17 8:40am
v2
Comments
Patrice T 10-Jun-17 14:43pm    
Define "this is code don't work", as this is not informative.

1 solution

You have to place a NotifyIcon control on your Form first in the Designer.
See this example: Visual Basic NotifyIcon for Taskbar Notification[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900