如何 将winform真正全屏 不要任务栏

gsky 2006-07-25 08:25:21
如题 。
还有 listview 每一行是动态添加的 其中有一列的数据都是这样:aaaa+bbbb
我想改变字符串bbbb的颜色 可以吗
...全文
1069 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
jxyaolp 2006-11-16
  • 打赏
  • 举报
回复
UO
yinrg 2006-11-07
  • 打赏
  • 举报
回复
呵呵,兄弟们都补上了啊..
yespie 2006-08-22
  • 打赏
  • 举报
回复
up
aSalt 2006-07-26
  • 打赏
  • 举报
回复
如果是一列就不可以.
当然可以重写某些ListView, 还要写一个支持彩色格式的String类 ....总之那样就比较麻烦了
aSalt 2006-07-26
  • 打赏
  • 举报
回复

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());
RexZheng 2006-07-26
  • 打赏
  • 举报
回复
mark
qyfjl 2006-07-26
  • 打赏
  • 举报
回复
[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);
namhyuk 2006-07-25
  • 打赏
  • 举报
回复
真正变态的全屏就是
FormBorderStyle:None
WindowState:Maximized
www_123du_com 2006-07-25
  • 打赏
  • 举报
回复
this.FormBorderStyle = FormBorderStyle.None;
this.TopMost = true;
this.WindowState = FormWindowState.Maximized;
firedlove 2006-07-25
  • 打赏
  • 举报
回复
this.ShowInTaskbar = false;
whmjw 2006-07-25
  • 打赏
  • 举报
回复
this.formborderstyle=FormBorderStyle.none;
gsky 2006-07-25
  • 打赏
  • 举报
回复
up

110,534

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧