Results 1 to 6 of 6

Thread: Change notifyicon without external files

  1. #1

    Thread Starter
    Junior Member Barkruk's Avatar
    Join Date
    Apr 2001
    Location
    Holland
    Posts
    27

    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

  2. #2

    Thread Starter
    Junior Member Barkruk's Avatar
    Join Date
    Apr 2001
    Location
    Holland
    Posts
    27
    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.

  3. #3
    Fanatic Member Redth's Avatar
    Join Date
    May 2001
    Location
    Ontario, Canada
    Posts
    551
    How bout an imagelist?

  4. #4

    Thread Starter
    Junior Member Barkruk's Avatar
    Join Date
    Apr 2001
    Location
    Holland
    Posts
    27
    results in the same error :'(

  5. #5
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690
    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.

  6. #6

    Thread Starter
    Junior Member Barkruk's Avatar
    Join Date
    Apr 2001
    Location
    Holland
    Posts
    27
    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
  •  



Click Here to Expand Forum to Full Width