Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以确定表单所在的屏幕?不是位置或大小!
我用了
Dim myScreens() As Screen = Screen.AllScreens Me.Left = (myScreens(0).WorkingArea.Width - Me.Size.Width) / 2 Me.Top = (myScreens(0).WorkingArea.Height - Me.Size.Height) / 2
发布表格。当用户将表单重新定位到另一个屏幕上时,我想保存那个新屏幕的位置!
是的,使用Screen.FromControl(Me).
Screen.FromControl(Me)
检索包含指定控件最大部分的显示器的屏幕。