private void Boot_Load(object sender, EventArgs e) { writebutton.Enabled = false; Enabled = false; Credentialform cred = new Credentialform(); cred.ShowDialog(); Enabled = true; connectionString = "server=145.24.222.163;Port=8500;UserId=" + gebruikertekst + ";Password="******";database=OP3;CharSet=utf8;Persist Security Info=True;"; makeConnection(); checkconnection(); }