don't assign the variables inside private void InitializeComponent(); instead "Double click on the form and in it's Load event" make the assignments. (this will keep the designer happy). Kudos to "https://mbmproject.com/blog/tutorials/windows-forms-c-variables-strings-and-boolean"