I know this probably sounds stupid but in vb, you can make a notifyicon, now i was wondering how to change the icon in code, like this(for example)
If Textbox1.Text = "MPGH" Then
NotifyIcon1.Icon.Set = Resources.Help-Me
End If
The part i need help with is setting the icon(cuz the Icon.Set command above isn't a real command) and, the resource part, i imported the ico files into my resources, but once i get the icon set code, how do i make it show that one
Thank You
You need to use a ContextMenuStrip to use multiple images. Fill it with items and then change icon using the following command.
Code:
If ContextMenuSubItemName.text = "MPGH" Then
Contextmenusubitemname.image=Imagename
End If
If you want to change just the icon of NotifyIcon1 then, just use: