Coding 4 Fun - Windows 7 Taskbar

Sign in to queue

The Discussion

  • User profile image
    Clint

    @jon889 example

    line 1

    line 2

    highlight line 1 until you see bit of line 2.

    Plus you can download the source Smiley

  • User profile image
    Clint

    @jon889 just keep on dragging to next line, this will be fixed when we go to the new version of C4F in the upcoming months

  • User profile image
    Jon889

    Well done, I every line of code is chopped off at the end(in both IE and FF), totally useless...

  • User profile image
    UnknownGuy

    How do you go about adjusting the spacing of the icon's in the "quick launch" section, when "Always combined, hide labels" is selected in the taskbar properties? There is just too much space between the icons, and the registry "fix" that has been repeated everywhere just doesnt work well. (The icon width only adjusts when the program is open, then goes back to default when the program is closed)

  • User profile image
    Clint

    @UnknownGuy, off topic BUT if you use Small Icons, I honestly don't think on the RTM build it is too much.  With the pre-beta, I forced myself to adopt the new icon only mode for a week.  I couldn't go back.  Most apps you associate with an icon.

  • User profile image
    ViRUS

    Thanks for your answer. Very useful site! Smiley

  • User profile image
    Clint

    @ViRUS these are windows 7 APIs much like there are Vista APIs.  they can be coded into an application and still have the application work in XP but they won't be taken advantage of.  sorry.

  • User profile image
    ViRUS

    Is there any way of making an app that uses this run in Windows XP?

  • User profile image
    Jan

    So when will the Jumplist tutorial be up then? (For VB.NET)

  • User profile image
    Clint

    @Jan, few weeks, we're working on it but other stuff needed to get finished first.

  • User profile image
    Clint

    @Jan PDC's five major projcets took a lot of our time and attention, the hope is before Christmas.

  • User profile image
    Jan

    Will it be done before Christmas?

  • User profile image
    Lee

    Just came across this looking for a way to add progressbar and jumplist to taskbar. Thank you for posting this, exactly what I am looking for

  • User profile image
    Clint

    @Don yup, we provide full source code to do it, if you have any questions, use the "Email blog author" link at the top right.

    To download visual studio express, go to www.microsoft.com/express (the link is at the top of the article as well)

  • User profile image
    Don

    Is this something that I could attempt to do not having any experience with code?

  • User profile image
    Clint

    @DDjusD this examples has VB examples to do just that

  • User profile image
    DDjusD

    Okay thanks but just to wonder can I do the taskbar icon progress bar and the toobar buttons in Visual Basic?

  • User profile image
    Clint

    @DDjusD we did a jumplist article that does have VB examples in it.

    blogs.msdn.com/.../9933039.aspx

  • User profile image
    DDjusD

    I find this very informative but being me, I have no idea how to do it, I find things easier to understand and do with a video tutorial and was wondering if, maybe, you could make a video on how to do this step-by-step in Visual Basics 2008.

  • User profile image
    Clint

    @DDjusD I need a bit more information.  I know how to do this with WPF and the Media Element but I'm assuming your using a Windows Form application and the AxWMPLib control.

    msdn.microsoft.com/.../dd562388(v=VS.85).aspx

    SO to do what you're asking, I'd do the following.  It isn't pretty as I have limited knowledge on this control.

    First is creat a timer that you'll use to actually increment the task bar

    Second is you'll want to hook into three different events.  PositionChange, MediaChange, and PlayStateChange

    on Media Change, you'll do something like

    Dim changedItem As WMPLib.IWMPMedia3 = e.item

    and the changedItem.duration member will tell you the total duration.  On media change as well, you'll want to reset the current position and set a new max value.  On playstate change, if play, start the timer and start incrememting as long as it isn't past the max value.

    On media position change, readjust the position on the task bar progress bar as well.

    This should do what you need.

  • User profile image
    DDjusD

    Okay but they weren't entirely clear to me. I have another question on making a a Task Bar progress bar, how would I get it to use the max value of the windows media player plug-in?

  • User profile image
    Clint

    @DDjusD this is getting away from the topic of the article, hit the "Contact blog author" link in upper right and I'll help you out there.

  • User profile image
    DDjusD

    Okay I am making headway and have got the button working but there is an issue, "Value of type 'System.Drawing.Bitmap' cannot be converted to 'System.Drawing.Icon'.". How would I convert it the a "System.Drawing.Icon" and add it to my resources?

  • User profile image
    Clint

    @Technic Squad they code for VB is on codeplex along with c# by following the link at the top of the page labeled "Source Code" Smiley

  • User profile image
    Technic Squad

    Mind if you give a sample project file for Visual Basic 2010?

Add Your 2 Cents