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;
}
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/9240380/viewspace-736140/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/9240380/viewspace-736140/