新人求教topmost
using System;using
using System.Text;
using System.Drawing;
using System.Windows.Forms;
public class Form1:Form
{
int W=System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width;//获取屏幕宽度
int H=System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height;//获取屏幕高度
public Form1()
{
InitializeComponent();
this.TopMost=true;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Size=new Size(100,100);
this.BackColor=Color.BlueViolet;
}
private void InitializeComponent()
{
this.Text="form";
}
static void Main()
{
Application.Run(new Form1());
}
}
请教怎么错了????求修改后的源码
错误信息:
>> 开始编译...
\csharp\form\form.exe: no entry point specified
nment
耗时4.126秒
>> 编译失败