net中对面板和按钮进行编码以使其全屏显示

net中对面板和按钮进行编码以使其全屏显示

本文介绍了如何在vb.net中对面板和按钮进行编码以使其全屏显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

晚上好,

我想知道如何对面板和按钮进行编码,以便当表单全屏显示时,它们都应该移到我放置它们的正确位置.

这是我用来使表单全屏显示的代码:

Good evening people,

I would like to know how to code panels and buttons so that when the form goes fullscreen it should all move to the correct place to where I placed them.

Here''s the code I''m using to make the form full screen:

Private Sub FullscreenToolStripMenuItem_Click(ByVal sender As Object,
                                              ByVal e As System.EventArgs) Handles FullscreenToolStripMenuItem.Click

    If FullscreenToolStripMenuItem.Checked = False Then
        Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None
        Me.WindowState = FormWindowState.Maximized
        Me.TopMost = True
        FullscreenToolStripMenuItem.Checked = True
    Else
        ' You can change this to the border style that you are currently using
        Me.FormBorderStyle = Windows.Forms.FormBorderStyle.Sizable
        Me.WindowState = FormWindowState.Normal
        Me.TopMost = False
        FullscreenToolStripMenuItem.Checked = True
    End If
End Sub



我有3个面板和2个按钮.顺便说一句,该程序应在任何分辨率的全屏或任何尺寸的屏幕上运行.

在此先感谢



I have 3 panels and 2 buttons. By the way, the program should run on any resolution full screen or any screen size.

Thanks in advance

推荐答案


这篇关于如何在vb.net中对面板和按钮进行编码以使其全屏显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 20:42