private void checkBoxShowPasswordWeather_CheckedChanged(object sender, EventArgs e) { if (checkBoxShowPasswordWeather.Checked == true) textBoxWeatherPassword.PasswordChar = '\0'; else textBoxWeatherPassword.PasswordChar = '*'; }