- This topic explains about how to place form in lower right corner of the screen in VB programming.
- Here you can position form on corner of your screen using vb programming.
SystemInformation Class – Place form in lower right corner of the screen in vb
- SystemInformation Class provides information about the current system environment.
Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
- Syntax for SystemInformation Class
|
1 2 |
'Declaration Public Class SystemInformation |
SystemInformation.WorkingArea Property – Place form in lower right corner of the screen in vb
- SystemInformation.WorkingArea Property gets the size, in pixels, of the working area of the screen.
Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
- Syntax for SystemInformation.WorkingArea
|
1 2 |
'Declaration Public Shared ReadOnly Property WorkingArea As Rectangle |
Rectangle Structure – Place form in lower right corner of the screen in vb
- Rectangle Structure stores a set of four integers that represent the location and size of a rectangle.
Namespace: System.Drawing
Assembly: System.Drawing (in System.Drawing.dll)
- Syntax for Rectangle Structure
|
1 2 3 4 5 |
'Declaration <SerializableAttribute> _ <TypeConverterAttribute(GetType(RectangleConverter))> _ <ComVisibleAttribute(True)> _ Public Structure Rectangle |
Rectangle.Left Property – Place form in lower right corner of the screen in vb
- Rectangle.Left Property gets the x-coordinate of the left edge of this Rectangle structure.
- Syntax for Rectangle.Left property
|
1 2 3 |
'Declaration <BrowsableAttribute(False)> _ Public ReadOnly Property Left As Integer |
Rectangle.Top Property – Place form in lower right corner of the screen in vb
- Rectangle.Top Property gets the y-coordinate of the top edge of this Rectangle structure.
Namespace: System.Drawing
Assembly: System.Drawing (in System.Drawing.dll)
Rectangle.Width Property – Place form in lower right corner of the screen in vb
- Rectangle.Width Property gets or sets the width of this Rectangle structure.
Rectangle.Height Property – Place form in lower right corner of the screen in vb
- Help to set the height of the rectangle structure.
Place form in lower right corner of the screen in vb – Complete Code
|
1 2 3 4 5 6 |
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim Frame_area As Rectangle = SystemInformation.WorkingArea Dim x As Integer = Frame_area.Left + Frame_area.Width - Me.Width Dim y As Integer = Frame_area.Top + Frame_area.Height - Me.Height Me.Location = New Point(x, y) End Sub |
Place form in lower right corner of the screen in vb
If you have any suggestions or doubts regarding your topic, please contact us…






