.net中使无窗体界面全屏显示时不挡住任务栏,或全屏显示
2007-05-11 17:17 ruinet 阅读(1700) 评论(2) 编辑 收藏 举报
在.net中使无窗体界面全屏显示时不挡住任务栏,实现的方法是将窗体的大小设置为除了任务栏外的的屏幕大小
在.net中有个方法可以直接获得这一值:
Dim fullScreen As String
s = Screen.FromRectangle(New Rectangle(0, 0, 0, 0))
Me.Width = s.WorkingArea.Width
Me.Height = s.WorkingArea.Height
Bounds的大小就是除了任务栏外的区域大小
而
Me.Width = s.Bounds.Width
Me.Height = s.Bounds.Height
则设置为全屏显示
在.net中有个方法可以直接获得这一值:
Dim fullScreen As String
s = Screen.FromRectangle(New Rectangle(0, 0, 0, 0))
Me.Width = s.WorkingArea.Width
Me.Height = s.WorkingArea.Height
Bounds的大小就是除了任务栏外的区域大小
而
Me.Width = s.Bounds.Width
Me.Height = s.Bounds.Height
则设置为全屏显示