Exemple #1
0
        private void AboutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AboutBox a = new AboutBox();

            if (FormWindowState.Minimized == WindowState || this.Visible==false)
                a.StartPosition = FormStartPosition.CenterScreen;
            else
                a.StartPosition = FormStartPosition.CenterParent;

            a.ShowDialog();
        }
Exemple #2
0
 private void AboutLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     AboutBox a = new AboutBox();
     a.Location = new Point(this.Left, (this.Top + this.Height / 2));
     a.ShowDialog();
 }