可能是控件的问题啦private void txtUserName_Enter(object sender,System.EventArgs e)
{
statusBar1.Text="输入用户名";
                            statusBar1.Refresh();
                            
} private void txtUserName_Leave(object sender,System.EventArgs e)
{
statusBar1.Text="";
                           statusBar1.Refresh();
}

解决方案 »

  1.   

    不加图片也就是showpanels=false 没问题
    一旦 showpanels=false也就是加了图片 statusBar1就会出问题。。
      

  2.   

    the following article might be helpful:HOW TO: Change the Color and the Font of the StatusBarPanel Object by Using Visual C# .NET
    http://support.microsoft.com/default.aspx?scid=kb;EN-US;319311
      

  3.   

    哦,那再这样试试呢
    statusBar1.Refresh();
    --〉
    this.Refresh(); //整个FORM刷新一遍。呵呵,向碟子大哥学习
      

  4.   

    hehe.用全form刷新有了。。
    可是这是MouseDown事件。非要鼠标点击才能显示。
    能不能tab切换就显示呢????
    也就是刷新放在别的地方>????????????
    谢谢大家拉!!!
      

  5.   

    MouseMove、TxtChanged的事件激发StatusBar的Txt显示~~,可行吗~~?