我用form做了个bar,让它运行时在桌面底部显示,也就是靠近windows的Taskbar,要怎么做?
FormStartPosition.CenterScreen,这样只在中间显示。

解决方案 »

  1.   

    form上放个panel设置dock属性fill,然后bar放到panel里面设置dock属性为bottom
      

  2.   

    没有bar控件的,只有一个像bar一样的长条form !
      

  3.   

    选择FormStartPosition.Manusl
    在Show() 前,先定位;
    Form1.Top =960;
    Form1.Left = 0;
    对于1024*768的屏幕来说基本就靠下了
      

  4.   

    这个Form设置成透明,bar的Dock设成bottom
      

  5.   

    根据屏幕的尺寸和Form的尺寸计算显示位置Rectangle recWa = Screen.PrimaryScreen.WorkingArea;
    this.Top = recWa.Height - this.Height;
    this.Left = recWa.Width - this.Width;