Solved

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

Posted on 2011-09-10
3
377 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 74

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now