Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
I recently started programming in C# and was trying to build a program that would show a picture on the screen for 5 seconds then show another picture. However, when I run my program I see nothing for 5 seconds then the second picture shows up immediately. Any help would be appreciated.
public class picview : System.Windows.Forms.Form
private PictureBox picture = new PictureBox();
public static int Main(string args)
this.FormBorderStyle = 0; //Remove border around frame
resw = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width; //Get screen resolution size
resh = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height;
this.Size = new System.Drawing.Size(resw, resh); //Set form to screen size
picture.Location=new Point(0,0); //Set picture location
picture.Size= new Size(resw,resh); //Make picture full screen
0 · ·