一.以下是网络上可搜索到的次序 当 Windows Form 应用程序启动时,会以下列顺序引发主要表单的启动事件: System.Windows.Forms.Control.HandleCreated System.Windows.Forms.Control.BindingContextChanged System.Windows.Forms.Form.Load System.Windows.Forms.Control.VisibleCha
1.改变窗体图标 先把图标放到项目文件夹中,然后点击窗体属性的ICON添加即可. 参考:https://www.cnblogs.com/yangxuli/p/8075484.html?tdsourcetag=s_pctim_aiomsg. 2.任意确定窗体程序打开初始打开位置 这里以窗体放置在屏幕下方居中为例,先获取当前显示屏大小,该函数是不包括任务栏的: //获取显示器屏幕的大小,不包括任务栏.停靠窗口 int SH = Screen.PrimaryScreen.WorkingArea.Hei