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:
Code:
NotifyIcon1.Image=Imagename
Hope this helps !!
For the NotifyIcon1.Image thing, it says Image isn't a member of the blah blah blah, im using vb 2008 express btw
Originally Posted by dudezone2
For the NotifyIcon1.Image thing, it says Image isn't a member of the blah blah blah, im using vb 2008 express btw
What is blah blah blah ??
idk, it isnt a member of NotifyIcon or whatever, it just means NotifyIcon.Image isnt a command
Originally Posted by dudezone2
idk, it isnt a member of NotifyIcon or whatever, it just means NotifyIcon.Image isnt a command
No, it can't be....It should be there !!
lol, it says that
It's NotifyIcon.Icon, not NotifyIcon.Image by the way..
EDIT: Oops, didn't see you'd changed the thread...seems you already figured it out :P