本文介绍了在vb.net中将Windows窗体大小设置为最大,但显示任务栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在vb.net中开发一个简单的软件应用程序.
在那里,我保留了表单属性-windowstate为最大化
但是它隐藏了我的任务栏,我不想要那个.
我希望表格以完整尺寸显示在任务栏上方.
即它不应该隐藏我的任务栏.
I am developing a simple software application in vb.net.
there i kept form property - windowstate as maximized
but then it is hiding my taskbar and i dont want that.
I want the form to be shown above the task bar in full size.
i.e. it should not hide my task bar. How to do it.
推荐答案
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.Top = 0
Me.Left = 0
Me.Height = Screen.PrimaryScreen.WorkingArea.Height
Me.Width = Screen.PrimaryScreen.WorkingArea.Width
End Sub
快乐编码...
Happy Coding......
这篇关于在vb.net中将Windows窗体大小设置为最大,但显示任务栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!