Results 1 to 4 of 4

Thread: [RESOLVED] [2008] Hide window from Alt-Tab display

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2002
    Location
    Lexington, SC
    Posts
    586

    Resolved [RESOLVED] [2008] Hide window from Alt-Tab display

    Is there anyway to hide your window from the alt-tab window display? I have it set to not show in the taskbar but it still shows up when pressing alt tab and getting the window previews.

    Thanks!

  2. #2
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: [2008] Hide window from Alt-Tab display

    Could you try this out? Add this in the form's constructore event.

    Code:
    Me.FormBorderStyle = FormBorderStyle.SizableToolWindow;
    Me.ShowInTaskbar = false;
    Last edited by dee-u; Jan 26th, 2009 at 05:37 PM.
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  3. #3
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: [2008] Hide window from Alt-Tab display

    If your form has no borders then you should use this.

    Code:
    this.FormBorderStyle = FormBorderStyle.None;
    this.ShowInTaskbar = false;
    Code:
    Protected Overloads Overrides ReadOnly Property CreateParams() As CreateParams
        Get
            Dim cp As CreateParams = MyBase.CreateParams
            ' turn on WS_EX_TOOLWINDOW style bit
            cp.ExStyle = cp.ExStyle Or &H80
            Return cp
        End Get
    End Property
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2002
    Location
    Lexington, SC
    Posts
    586

    Re: [2008] Hide window from Alt-Tab display

    Awesome, thanks dee-u that worked perfectly. I was hiding my borders so the second one worked hehe

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