Appbar and focus issues

Discussion in 'Microsoft VB .NET' started by TyBreaker, Aug 11, 2006.

  1. TyBreaker

    TyBreaker Guest

    I have written an application desktop toolbar (similar to Taskbar in
    style) and when I first start it up, it displays fine and has mouse
    focus so that when you run your mouse over the buttons, tooltips appear
    and a single click on any button works as expected.

    But when I click on another application, the toolbar loses focus which I
    guess is as expected. However when I move my mouse back over the
    toolbar, the tooltips don't appear and the first click of my mouse on a
    button doesn't work. Having clicked though, the next click does work
    and tooltips also resume working. It appears to be a simple case of the
    toolbar being "active".

    My question is; how can I make my toolbar behave like the Windows
    Taskbar ie always active eg even when I have another application with
    focus, running my mouse over the Windows taskbar still shows tooltips
    and a single click on a button will action it.
    --
    ______ ___ __
    /_ __/_ __/ _ )_______ ___ _/ /_____ ____
    / / / // / _ / __/ -_) _ `/ '_/ -_) __/
    /_/ \_, /____/_/ \__/\_,_/_/\_\\__/_/
    /___/

    There are 10 types of people in this world; those who understand the
    binary numbering system and those who don't.

    There's no place like 127.0.0.1.

    ASCII a silly question, get a silly ANSI.
     
    TyBreaker, Aug 11, 2006
    #1
    1. Advertisements

  2. TyBreaker

    TyBreaker Guest

    TyBreaker wrote:
    > I have written an application desktop toolbar (similar to Taskbar in
    > style) and when I first start it up, it displays fine and has mouse
    > focus so that when you run your mouse over the buttons, tooltips appear
    > and a single click on any button works as expected.
    >
    > But when I click on another application, the toolbar loses focus which I
    > guess is as expected. However when I move my mouse back over the
    > toolbar, the tooltips don't appear and the first click of my mouse on a
    > button doesn't work. Having clicked though, the next click does work
    > and tooltips also resume working. It appears to be a simple case of the
    > toolbar being "active".
    >
    > My question is; how can I make my toolbar behave like the Windows
    > Taskbar ie always active eg even when I have another application with
    > focus, running my mouse over the Windows taskbar still shows tooltips
    > and a single click on a button will action it.


    Solved!

    --
    ______ ___ __
    /_ __/_ __/ _ )_______ ___ _/ /_____ ____
    / / / // / _ / __/ -_) _ `/ '_/ -_) __/
    /_/ \_, /____/_/ \__/\_,_/_/\_\\__/_/
    /___/

    There are 10 types of people in this world; those who understand the
    binary numbering system and those who don't.

    There's no place like 127.0.0.1.

    ASCII a silly question, get a silly ANSI.
     
    TyBreaker, Aug 12, 2006
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stefan De Schepper

    Intercept Lost"focus" without losing focus...

    Stefan De Schepper, Jul 13, 2005, in forum: Microsoft VB .NET
    Replies:
    0
    Views:
    400
    Stefan De Schepper
    Jul 13, 2005
  2. TyBreaker

    VB.NET Appbar example?

    TyBreaker, May 15, 2006, in forum: Microsoft VB .NET
    Replies:
    1
    Views:
    2,135
    bhailey
    Nov 13, 2008
  3. TyBreaker

    Appbar and Tooltips

    TyBreaker, Aug 7, 2006, in forum: Microsoft VB .NET
    Replies:
    1
    Views:
    261
    TyBreaker
    Aug 7, 2006
  4. squishy

    Appbar examples or components?

    squishy, Apr 15, 2007, in forum: Microsoft VB .NET
    Replies:
    5
    Views:
    397
    squishy
    Apr 18, 2007
  5. Uwe Gabbert

    WinForm as AppBar

    Uwe Gabbert, Feb 28, 2008, in forum: Microsoft VB .NET
    Replies:
    3
    Views:
    418
    Herfried K. Wagner [MVP]
    Feb 29, 2008
Loading...

Share This Page