http://blog.joycode.com/5drush/articles/10704.aspx

解决方案 »

  1.   

    trnbo(我的目标是没有蛀牙)你说的这个是WINFORM版的,我用不上,,里面的代码我也用不上,我要的是WEB版的...
      

  2.   

    我这个不知道可不可以: [DllImport("user32")]
    public static extern int GetSystemMetrics(int sc_screen);
    private void FloatForm_Load(object sender, System.EventArgs e)
    {
    pos=new Point(GetSystemMetrics(0)-250,GetSystemMetrics(1)-10);
    this.DesktopLocation=pos;

    }
                     private void OnTmer1_Tick(object sender, System.EventArgs e)
    {
         Point p=new Point(this.DesktopLocation.X,this.DesktopLocation.Y-1);
    this.DesktopLocation=p;
    if(p.Y<(pos.Y-this.Height))
    timer1.Enabled=false;
    }