Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- namespace Fox536
- {
- static class Program
- {
- /// <summary>
- /// The main entry point for the application.
- /// </summary>
- [STAThread]
- static void Main()
- {
- Application.EnableVisualStyles();
- Application.SetCompatibleTextRenderingDefault(false);
- Application.Run(new Form1());
- }
- }
- public partial class Form1 : Form
- {
- string ImgPath = "C:\\test.png";
- public Form1()
- {
- this.Size = new Size(1000, 71);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
- PictureBox picBox = new PictureBox();
- this.Controls.Add(picBox);
- picBox.Image = Image.FromFile(ImgPath);
- picBox.Dock = DockStyle.Fill;
- picBox.SizeMode = PictureBoxSizeMode.StretchImage;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement