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. alex

    Focus on buttons and text fields

    alex, Sep 11, 2003, in forum: Microsoft VB .NET
    Replies:
    2
    Views:
    197
    Herfried K. Wagner [MVP]
    Sep 11, 2003
  2. GBW

    MaxLength of textbox and Focus change

    GBW, Sep 13, 2003, in forum: Microsoft VB .NET
    Replies:
    3
    Views:
    559
    Herfried K. Wagner [MVP]
    Sep 13, 2003
  3. Stefan De Schepper

    Intercept Lost"focus" without losing focus...

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

    VB.NET Appbar example?

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

    Appbar and Tooltips

    TyBreaker, Aug 7, 2006, in forum: Microsoft VB .NET
    Replies:
    1
    Views:
    359
    TyBreaker
    Aug 7, 2006
  6. Zytan
    Replies:
    9
    Views:
    867
    Zytan
    Feb 19, 2007
  7. squishy

    Appbar examples or components?

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

    WinForm as AppBar

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