public keytest()
{
Button b = new Button();
// E:\net_self_learning\openfiledialog\openfiledialog\openfiledialog\bin\Debug
string startuppath = Application.StartupPath;//项目的启动路径 把资源文件放入此路径即可
b.Image = Image.FromFile("zapotec1.bmp");
b.Location = new Point(ClientSize.Width, ClientSize.Height);
b.Size = new Size(100, 100);
b.Parent = this;
}