初级问题:我新建了一个C# WINDOWSAPPLICATION ,新建了一个类,写了一个方法
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
namespace Service911.CSharp
{
class clsLimitPrice
{
// 申明类内的常量
public const string MY_PXXML = "";
// 声明类内的变量
private string strAA = "";
public static void GetPrice(){
MessageBox.Show("hi!");
}
}
}
我如何让程序一启动就运行这个方法?(GetPrice)
要如何更改 PROGRAM.CS 中的 Application.Run()