17 February 2014

How can I fixed a form size in win application and not to let user changes its size?



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 adi.Windows
{
    public partial class Login : Form
    {
        public Login()
        {
            InitializeComponent();

            this.MaximumSize = new Size(300, 300);
            this.MinimumSize = new Size(300, 300);
        }
       
    }
}

No comments:

Post a Comment