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

hi,

this might you.

kind regards,


aelassas.free.fr


Visual Studio Languages  ,  .NET Framework  >  Visual C#



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

BizTalk Server 2013 Azure VM Log Shipping and HA for hosts

How to Share webservice object to all user