Results 1 to 8 of 8

Thread: Changing Toolbar Icons

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    16

    Question

    I would dearly like to have the toolbar Icon change in response to program status - ie everything fine = smily face, problems = sad face

    Any Ideas?

  2. #2
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Code:
    If IsGood = True Then
    Toolbar1.Buttons.Item(1).Image = "smileyface"
    Else
    Toolbar1.Buttons.Item(1).Image = "sadface"
    End if
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    16

    Thumbs down

    Close -perhaps I didn't make myself clear - innacurate question sorry. I want to change the Icon displayed at the bottom of the screen should I have said Taskbar?

  4. #4
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Yeah it's called systray, but no problem!

    Do you use the code from http://www.vbsquare.com/tips/tip178.html to put it in the systray? then use Picture1.Picture = "SmileyFace.jpg" to change the icon I think.
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    16

    Thumbs down


    Close but still not there - I don't want it in the tray only on the taskbar. The one you click on to change applications

    Any Ideas?

  6. #6
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Just do Form1.Icon = "Smileyface.bmp" or something.
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    16

    Wink


    Got it!

    Form1.Icon = LoadPicture("<path>\FACE01.ICO")

    where <path> is you guessed it the path required

    That was driving me up the wall - thanks for your help

  8. #8
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Glad you found it matey
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

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