Menu

#3 Prevent alt-tab dialog from showing balloons.

open
nobody
None
5
2003-08-12
2003-08-12
No

The balloons should not be shown in the alt-tab dialog.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    I noticed that if you change/add the following code in public
    GraphicsPathWindow(), the taskbar doesn't add the
    balloonwindow. The FixedToolWindow form allows hiding from
    the TaskBar, so I setting it to that style allows the setting of
    ShowInTaskBar to false. Setting the BorderStyle to None
    doesn't overwrite the ShowInTaskbar property.

    FormBorderStyle = FormBorderStyle.FixedToolWindow;
    ShowInTaskbar = false;
    FormBorderStyle = FormBorderStyle.None;

    I'm working on implementing this into an internally used
    product at work. I'm sure I'll be making further changes... I'll
    try to keep it clean and send you my updates.

    Thanks for the headstart,

    Steven_Dzilvelis@hotmail.com

     
  • Alex Forencich

    Alex Forencich - 2006-11-19

    Logged In: YES
    user_id=1290300
    Originator: NO

    Replacing the GraphicsPathWindow constructor with this fixes the problem:

    public GraphicsPathWindow()
    {
    SetStyle(ControlStyles.AllPaintingInWmPaint |
    ControlStyles.DoubleBuffer |
    ControlStyles.UserPaint, true);

    __shape = null;
    __borderColor = SystemColors.WindowFrame;
    __borderStyle = null;
    __backStyle = null;
    BackColor = SystemColors.Window;
    FormBorderStyle = FormBorderStyle.FixedToolWindow;
    ShowInTaskbar = false;
    FormBorderStyle = FormBorderStyle.None;
    }

     

Log in to post a comment.

MongoDB Logo MongoDB