Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# window form align right bottom

    public partial class LowerRightForm : Form
    {
        public LowerRightForm()
        {
            InitializeComponent();
        }

        protected override void OnLoad(EventArgs e)
        {
            PlaceLowerRight();
            base.OnLoad(e);
        }

        private void PlaceLowerRight()
        {
            //Determine "rightmost" screen
            Screen rightmost = Screen.AllScreens[0];
            foreach (Screen screen in Screen.AllScreens)
            {
                if (screen.WorkingArea.Right > rightmost.WorkingArea.Right)
                    rightmost = screen;
            }

            this.Left = rightmost.WorkingArea.Right - this.Width;
            this.Top = rightmost.WorkingArea.Bottom - this.Height;
        }
    }
Comment

PREVIOUS NEXT
Code Example
Csharp :: C# Calculate MD5 Checksum For A File 
Csharp :: dinktopdf page break 
Csharp :: linq from list c# 
Csharp :: how to make 3d field of view in unity 
Csharp :: c# listview filter contains 
Csharp :: how to hide the title bar of window in monogame 
Csharp :: c# json 
Csharp :: Send Hotmail/Outlook Email C# (Win/ASP.NET) 
Csharp :: c# substring find word 
Csharp :: cache trong mvc 
Csharp :: declarar lista c# 
Csharp :: C# show text in another form 
Csharp :: linear search algorithm c# 
Csharp :: Advertisement code for unity 
Csharp :: c# loop through queue 
Csharp :: unity how to make gamemanager instance 
Csharp :: Unity upload image to project 
Csharp :: remove substring from string c# 
Csharp :: system.drawing.color to system.consolecolor 
Csharp :: c# copy bidimensional array 
Csharp :: c# datagridview center cell text 
Csharp :: unity normalize movement 
Csharp :: commit help 
Csharp :: c# string length 
Csharp :: create enum from int c# 
Csharp :: c# console.writeline 
Csharp :: ssml 
Csharp :: if else c# 
Csharp :: exception 
Csharp :: Convert a string to Integer in C# without library function 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =