ShowInTaskbar = false;   不显示在任务栏中
                FormBorderStyle = FormBorderStyle.None;  窗体样式。。alt+tab只是切换程序!    设置这两个属性不影响呀alt+tab的功能呀

解决方案 »

  1.   

    错了  如果用FormBorderStyle.FixtoolWindow+ShowInTaskbar = false;就可以的
      但是我必须要用FormBorderStyle.None,而且还不能Hide()
      

  2.   

    應該是要隱藏進程才可以不出alt+tab中出現~
      

  3.   

    也不一定要隐藏进程吧,你看腾讯QQ的 在任务管理器里分明有个QQ.exe进程,但是在Alt+Tab里却没有
      

  4.   

    有么?   我用的QQ2008,还有MSN  在Alt+Tab里都没有  我说的是QQ主界面啊  不是聊天窗口   聊天窗口是有的
      

  5.   

    为什么是WS_EX_TOOLWINDOW,见CreateWindowExMSDN参考。
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            this.FormBorderStyle = FormBorderStyle.None;
        }    protected override CreateParams CreateParams
        {
            get
            {
                const int WS_EX_APPWINDOW = 0x00040000;
                const int WS_EX_TOOLWINDOW = 0x00000080;            CreateParams result = base.CreateParams;
                result.ExStyle = result.ExStyle & (~WS_EX_APPWINDOW);
                result.ExStyle = result.ExStyle | WS_EX_TOOLWINDOW;
                return result;
            }
        }
    }
      

  6.   

    修改创建窗口参数的ExStyle样式
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;namespace WindowsApplication126
    {
        public partial class Form1 : Form
        {
            public Form1()
            {
                InitializeComponent();            this.FormBorderStyle = FormBorderStyle.None;
                this.ShowInTaskbar = false;
            }        protected override CreateParams CreateParams
            {
                get
                {
                    int WS_EX_TOOLWINDOW = 0x80;
                    CreateParams CP=base.CreateParams;                CP.ExStyle= CP.ExStyle|WS_EX_TOOLWINDOW;
                    return CP;
                }
            }
        }
    }
      

  7.   

    解释技术细节。但并不是鼓励把主程序从Alt+Tab列表中移去(会降低用户的使用方便)。
      

  8.   

    试试:
    protected override void SetVisibleCore(bool values)
    {   
        base.SetVisibleCore(values);
    }然后在Load的时候调用SetVisibleCore
      

  9.   

    QQ主程序不在A+T的时候是什么状态,最小化是吧,那还不是隐藏咯..简称,最小化时隐藏
      

  10.   

            protected override CreateParams CreateParams
            {
                get
                {
                    int WS_EX_TOOLWINDOW = 0x80; 
                    CreateParams CP = base.CreateParams;                 CP.ExStyle = CP.ExStyle | WS_EX_TOOLWINDOW; 
                    return CP; 
                }
            }        protected override CreateParams CreateParams
            {
                get
                {
                    const int WS_EX_APPWINDOW = 0x00040000; 
                    const int WS_EX_TOOLWINDOW = 0x00000080;                 CreateParams result = base.CreateParams; 
                    result.ExStyle = result.ExStyle & (~WS_EX_APPWINDOW); 
                    result.ExStyle = result.ExStyle | WS_EX_TOOLWINDOW; 
                    return result; 
                }
            }