//Form Initiation public Form1() { InitializeComponent(); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; pro = new profiles(this); pro.profileCheck(); }