当 textBox1.ReadOnly = true;
textBox1的背景色老是灰的,我想把它设置为白的,怎么搞?VS2005,winform

解决方案 »

  1.   

    textBox1.ReadOnly = true; 
    textBox1.BackColor = Color.White;
      

  2.   

    BackColor 属性。
    楼主这个也要发贴吗?
      

  3.   

    通过设置BackColor属性、建议设置为透明颜色。
      

  4.   

    BackColor 属性。 
    textBox1.ReadOnly = true; 
    textBox1.BackColor = Color.White; 
    都可以,嘿嘿,楼主可以结贴给分了
    是我提醒你结贴的我,要给我分的
      

  5.   


     textBox1.ReadOnly = true;
              textBox1.BackColor = Color.White;
      

  6.   

    OK了,我这个是自定义控件,开始没看清楚,以为设置了readonly 就都是灰的。
    我这个控件是 textbox1.textbox.backcolor=colors.white
      

  7.   

    textBox1.ReadOnly = true; 
    textBox1.BackColor = Color.White;
    在属性里就有啊
      

  8.   

    textBox1.BackColor = color.White
      

  9.   

    textBox1.Enable= true; 
    textBox1.ReadOnly = true; 
    textBox1.BackColor = Color.White;