在visual basic中在屏幕右下角定位表单 [英] Position form at the bottom right corner of the screen in visual basic

查看:26
本文介绍了在visual basic中在屏幕右下角定位表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在表单加载时将表单放置在屏幕的右下角?我使用的是 Visual Basic 2010 Express.

How can I position a form at the bottom right corner of the screen when the form loads? I'm using Visual Basic 2010 Express.

谢谢

我这样做了,它似乎工作得很好.

I did this and it seems to work great.

Dim x As Integer
Dim y As Integer
x = Screen.PrimaryScreen.WorkingArea.Width - 400
y = Screen.PrimaryScreen.WorkingArea.Height - 270
Me.Location = New Point(x, y)

推荐答案

需要将Form.StartPosition改为Manual,并修改表单的Location属性

You need to change the Form.StartPosition to Manual and change the Location property of the form

例如 如何手动设置表单启动位置/位置?

VB.net - 表单起始位置左上角

使用 Form.StartPosition 属性Form.Location 属性

这篇关于在visual basic中在屏幕右下角定位表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆