private void UrlConfigForm_Load(object sender, EventArgs e) { try { configFile = Application.ExecutablePath + ".config"; initUrl = VersionChecker.GetServerPath(configFile); this.textBox1.Text = initUrl; } catch { this.textBox1.Text = ""; } }