如题 。
还有 listview 每一行是动态添加的 其中有一列的数据都是这样:aaaa+bbbb
我想改变字符串bbbb的颜色 可以吗

解决方案 »

  1.   

    this.formborderstyle=FormBorderStyle.none;
      

  2.   

    this.ShowInTaskbar = false;
      

  3.   

    this.FormBorderStyle = FormBorderStyle.None;
    this.TopMost = true;
    this.WindowState = FormWindowState.Maximized;
      

  4.   

    真正变态的全屏就是
    FormBorderStyle:None
    WindowState:Maximized
      

  5.   


    this.FormBorderStyle = FormBorderStyle.None;
    this.TopMost = true;
    this.WindowState = FormWindowState.Maximized;
    this.ForeColor = Color.Black; //我加一句,呵呵,全屏一般不都是黑色的吗?
    还有 listview 每一行是动态添加的 其中有一列的数据都是这样:aaaa+bbbb
    我想改变字符串bbbb的颜色 可以吗
    ---------------------------------------------------------------------------------
    如果aaaa 和 bbbb 是不同的列(主列和子列), 完全可以使用/改变不同的颜色颜色,例如
    ListViewItem lvi = new ListViewItem("....");
    lvi.SubItems.AddRange (new string []{"test"},Color.Green ,Color.WhiteSmoke,customFont());
      

  6.   

    如果是一列就不可以. 
    当然可以重写某些ListView, 还要写一个支持彩色格式的String类 ....总之那样就比较麻烦了
      

  7.   

    [DllImport("User32.dll")]
    public static extern IntPtr FindWindowEx(IntPtr ph, IntPtr ch, String cn, String wn);
    [DllImport("User32.dll")]
    public static extern bool ShowWindow(IntPtr hWnd, long nCmdShow );
    隐藏任务栏:
    IntPtr handle = FindWindowEx(IntPtr.Zero,IntPtr.Zero,"Shell_TrayWnd",null);
    ShowWindow(handle,0);
    显示:
    IntPtr handle = FindWindowEx(IntPtr.Zero,IntPtr.Zero,"Shell_TrayWnd",null);
    ShowWindow(handle,1);