Results 1 to 7 of 7

Thread: Load icon at runtime in StatusBar

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2005
    Posts
    52

    Load icon at runtime in StatusBar

    Hi ,

    Does anyone know how to load an icon into the StatusBar, at runtime ?

    Element to be loaded: StatusBar1.Panels(0).Icon

    What's the command to load the icon?

    Thanks,
    Joao.

  2. #2

  3. #3

    Thread Starter
    Member
    Join Date
    Apr 2005
    Posts
    52

    Re: Load icon at runtime in StatusBar

    Hi, i tried using your code, but I'm getting a compilation error:
    " LoadPicture is not defined " .

    Where is the LoadPicture defined ? In any standard Namespaces ? Or is it your own customized code?

    Please let me know.

    Thanks,
    Joao.

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Load icon at runtime in StatusBar

    Quote Originally Posted by jfortes
    Hi, i tried using your code, but I'm getting a compilation error:
    " LoadPicture is not defined " .

    Where is the LoadPicture defined ? In any standard Namespaces ? Or is it your own customized code?

    Please let me know.

    Thanks,
    Joao.
    LoadPicture is a built in VB Function that has been around for ever. Are you using Rhino's code just as it was posted? His code example works just fine for me.

  5. #5
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Load icon at runtime in StatusBar

    Since this is the Classic VB Forum I need to ask if you're using VB.Net? In that case you should post your question in that forum instead.

  6. #6

    Thread Starter
    Member
    Join Date
    Apr 2005
    Posts
    52

    Re: Load icon at runtime in StatusBar

    Yes i'm using VB.NET.
    Is there a specific forum for VB.NET questions ?
    If so I will post this question there.
    thanks.

  7. #7
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Load icon at runtime in StatusBar

    Quote Originally Posted by jfortes
    Is there a specific forum for VB.NET questions ?
    Yes there is a VB.Net forum right here: http://www.vbforums.com/forumdisplay.php?f=25

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