c#專案啟動路徑及資原始檔jpg_bmp相關

wisdomone1發表於2012-07-20
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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章