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

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'