[Help]Notify Icon[Solved]

Posts 1–9 of 9 · Page 1 of 1
[Help]Notify Icon[Solved]
Nevermind guys, i think i got it working, if you want the code(this MIGHT not work) its:

NotifyIcon1.Icon = (My.Resources.iconfilenamehere)
Quote Originally Posted by dudezone2 View Post
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
Quote Originally Posted by dudezone2 View Post
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
Quote Originally Posted by dudezone2 View Post
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
yup, thanks anyway tho
Posts 1–9 of 9 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us