如何 将winform真正全屏 不要任务栏 如题 。还有 listview 每一行是动态添加的 其中有一列的数据都是这样:aaaa+bbbb我想改变字符串bbbb的颜色 可以吗 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 this.formborderstyle=FormBorderStyle.none; this.ShowInTaskbar = false; this.FormBorderStyle = FormBorderStyle.None;this.TopMost = true;this.WindowState = FormWindowState.Maximized; 真正变态的全屏就是FormBorderStyle:NoneWindowState:Maximized 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()); 如果是一列就不可以. 当然可以重写某些ListView, 还要写一个支持彩色格式的String类 ....总之那样就比较麻烦了 [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); 请教一个计算网页深度的办法! sockets 的运用 网页中使用FolderBrowserDialog? 有个Sql语句不会写 一个正则的问题 c#主要用来做什么 可以用来作底层开发吗? 怎么样写一个购物车的实例模型,我按自己的想法写出了一个出了点问题!!! 新手问题,怎么才能将datagrid中的指定列设置为编辑状态??? 在C#中如何实现延时。。。 [求教]谁能告诉我怎么在WEB窗体调用WINDOWS窗体? 推荐给我们可爱的程序一个俱乐部! 先根据已得到的DataTable进行排序,生成一个DataView,再转成一个新的DataTable,急,请大虾帮忙
this.TopMost = true;
this.WindowState = FormWindowState.Maximized;
FormBorderStyle:None
WindowState:Maximized
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());
当然可以重写某些ListView, 还要写一个支持彩色格式的String类 ....总之那样就比较麻烦了
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);