public MainForm()
        {
            InitializeComponent();
            this.SetStyle(ControlStyles.DoubleBuffer | ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint, true);
            Bitmap map = new Bitmap("background2.png");

            GlobalFunction.ClearAlphaColor(map);
            Main_Image = new Bitmap("background2.png");
            GlobalFunction.ClearAlphaColor(Main_Image);
            //panel1.AutoScroll = true;
            //panel1.HorizontalScroll.Enabled = false;
            this.pictureBox1.SizeMode = PictureBoxSizeMode.AutoSize;
            pictureBox1.Image         = map;

            z.Image = Image.FromFile("2.png");
            z.Size  = new Size(32, 32);
            Bitmap amc = new Bitmap("mousecursor.png");

            GlobalFunction.ClearAlphaColor(amc);

            myCur = GlobalFunction.CreateCursor(amc, 0, 0);
            InitializeTabPage();
            ScrollPanel smart = new ScrollPanel();

            this.Controls.Add(smart);
            smart.Size     = new Size(750, 400);
            smart.Location = new Point(20, 150);
            smart.Controls.Add(pictureBox1);
            smart.AutoScroll     = true;
            pictureBox1.Location = new Point(0, 0);
        }
        public MainForm()
        {
            InitializeComponent();
            this.SetStyle(ControlStyles.DoubleBuffer | ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint, true);
            Bitmap map = new Bitmap("background2.png");
            GlobalFunction.ClearAlphaColor(map);
            Main_Image = new Bitmap("background2.png");
            GlobalFunction.ClearAlphaColor(Main_Image);
            //panel1.AutoScroll = true;
            //panel1.HorizontalScroll.Enabled = false;
            this.pictureBox1.SizeMode = PictureBoxSizeMode.AutoSize;
            pictureBox1.Image = map;

            z.Image = Image.FromFile("2.png");
            z.Size = new Size(32, 32);
            Bitmap amc = new Bitmap("mousecursor.png");
            GlobalFunction.ClearAlphaColor(amc);

            myCur = GlobalFunction.CreateCursor(amc, 0, 0);
            InitializeTabPage();
            ScrollPanel smart = new ScrollPanel();
            this.Controls.Add(smart);
            smart.Size = new Size(750, 400);
            smart.Location = new Point(20, 150);
            smart.Controls.Add(pictureBox1);
            smart.AutoScroll = true;
            pictureBox1.Location = new Point(0, 0);
        }