Results 1 to 5 of 5

Thread: Edit the taskbar settings with code

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    22

    Edit the taskbar settings with code

    If you right click the taskbar in windows and choose "properties", there are a couple of setting for you to edit. How is it possible to edit these with visual basic .net code? Im particularly interested in the "always put the taskbar on top" setting (might not be the exact name of the setting, but i have a swedish version of windows so im guessing the english label here ).
    I've been searching for a regedit entry for these setting with no luck.

    Thanks in advance

  2. #2
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: Edit the taskbar settings with code

    There is a SHAppBarMessage API for this.

    This page may help. (Google Cache)

    Related KB article: http://support.microsoft.com/kb/143117/
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    22

    Re: Edit the taskbar settings with code

    Thank you iPrank for your answer.
    But I get the same error as the guy in the second link. He said he solved it buy passing something in by reference but i dont know what reference to add. Too bad i dont have an expert exchange account so i could pm the guy. Any ideas? The link

  4. #4
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: Edit the taskbar settings with code

    as he says in that last post it didn't like ByVal parameter for pData:
    VB Code:
    1. Private Declare Function SetAppBarMessage Lib "shell32" Alias "SHAppBarMessage" _
    2.    (ByVal dwMessage As Integer, [B]ByRef[/B] pData As APPBARDATA) As Integer

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    22

    Re: Edit the taskbar settings with code

    Okay! Great Thanks alot both

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