Solved

VB.Net How to place a form in bottom right of screen

Posted on 2011-09-10
3
452 Views
Last Modified: 2012-05-12
Hi Experts.  I have a small form that I would like to have appear in roughly the bottom right hand corner of the screen.  As most screens will be different sizes, how do I determine the correct screen position.  Thanks in advance
0
Comment
Question by:PNRT
3 Comments
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 500 total points
ID: 36516903
Simple one. In the Load event of the form:
Private Sub Form1_Load(sender As Object, e As System.EventArgs) Handles Me.Load

    Me.Location = New Point(Screen.PrimaryScreen.WorkingArea.Width - Me.Width, Screen.PrimaryScreen.WorkingArea.Height - Me.Height)

End Sub

Open in new window

0
 
LVL 22

Expert Comment

by:plusone3055
ID: 36516906
0
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 36516908
You might try something like:

Me.Left = System.Windows.Forms.Screen.WorkingArea.Width - Me.Width
Me.Top = System.Windows.Forms.Screen.WorkingArea.Height - Me.Height

Open in new window

0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question