标题:新人求教topmost
只看楼主
可爱的小舞酱
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2013-9-18
结帖率:0
已结贴  问题点数:20 回复次数:2 
新人求教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秒
>> 编译失败
搜索更多相关主题的帖子: public 
2013-09-18 00:58
shangsharon
Rank: 9Rank: 9Rank: 9
来 自:湖北武汉
等 级:蜘蛛侠
威 望:7
帖 子:221
专家分:1261
注 册:2012-3-25
得分:20 
未声明入口点.

貌似没看出什么问题.
2013-09-18 21:13
可爱的小舞酱
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2013-9-18
得分:0 
回复 2楼 shangsharon
嗯嗯,怎么办啊
2013-09-18 21:48



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-420703-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.930354 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved