Display Image at project startup - program.cs?
i have small windows forms project , iam looking display image @ project startup, mean
program.cs, possible?
but below code displaying empty picturebox , picturebox image not displying...
application.enablevisualstyles();
application.setcompatibletextrenderingdefault(false);
system.drawing.image myprgimage = system.drawing.image.fromfile("c:\\temp\\images\\for_network.gif");
//picturebox mypictbx = new picturebox();
//mypictbx.sizemode = pictureboxsizemode.stretchimage;
//mypictbx.image = myprgimage;
//mypictbx.show();
form1 fm1 = new form1();
fml.startposition = formstartposition.centerscreen;
fm1.show();
u.paranthaman
Visual Studio Languages , .NET Framework > Visual C#
Comments
Post a Comment