private void logButton_Click(object sender, EventArgs e) { string changelog = "ERROR ! \nCould not reach the server."; try { // Create web client. WebClient client = new WebClient(); client.Proxy = null; // Download string. changelog = (client.DownloadString(@"http://aerr.github.io/RemoteMessages/VERSION.txt")); using (Changelog window = new Changelog(changelog)) { window.ShowDialog(); } } catch { MessageBox.Show(changelog, "Changelog", MessageBoxButtons.OK, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1); } DialogResult = System.Windows.Forms.DialogResult.None; }