tijian_jichuang/Code/SOH.FenZhen.Client/Program.cs
2025-02-20 11:54:48 +08:00

32 lines
850 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Drawing;
namespace SOH.FenZhen.Client
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
var f = new FrmCall();
Rectangle r= System.Windows.Forms.Screen.PrimaryScreen.Bounds;
Point p = new Point();
p.Y = 0;
p.X = r.X + (r.Width - f.Width) / 2;
f.Location = p;
f.TopMost = true;
f.TopLevel = true;
f.StartPosition = FormStartPosition.Manual;
Application.Run(f);
}
}
}