|
-
Mar 20th, 2003, 06:12 PM
#1
Thread Starter
Junior Member
Change notifyicon without external files
I am using vb.net for the firts time. It is nice notifyicon is a standard now, but how can i change the icons of this notifyicon without calling external .ico files?
Before I was used to use vb6 and there i could use the standard picturebox images, but vb.net won't accept this anymore
I already searched msdn and google, but i cannot find any usefull aswer
-
Mar 20th, 2003, 06:21 PM
#2
Thread Starter
Junior Member
let me explain my question a little bit; i made a program that checks my mail every x minutes and show me in my systemtray how much emails exists in my inbox. almost the notifyicon have to be my icon with the zero :P, but sometimes i seemed to be important and got an email, so the notifyicon have to change in the icon with a one. In vb6 I have made icons with 1 till 9 and a > (more) and putted them all to pictureboxes. Worked fine, but .net don't want them.
-
Mar 20th, 2003, 07:26 PM
#3
Fanatic Member
-
Mar 21st, 2003, 03:02 AM
#4
Thread Starter
Junior Member
results in the same error :'(
-
Mar 21st, 2003, 12:31 PM
#5
Frenzied Member
Have you looked into this constructor for icon - Public Sub New(Type, String). I'm so new to vb.net I don't quite understand it, but it seems to be the only icon constructor that doesn't use a file.
-
Mar 22nd, 2003, 06:48 PM
#6
Thread Starter
Junior Member
I found the solution in one of the samples:
...\Microsoft Visual Studio .NET\Vb7\VB Samples\WinForms-SysTraySample\
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|