using System;
using System.Runtime.CompilerServices;
using System.Security.Policy;
namespace Plummer_Launcher
{
partial class Form1
{
/// (i skipped some of the vs generated code)
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.ProgressBar progressBar1;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.ComboBox comboBox2;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.WebBrowser webBrowser1;
public static int updateChangelog()
{
while (true)
{
string version = comboBox1.SelectedValue.ToString();
string res = "https://skmedix.pl/minecraft-changelog/" + version;
System.Uri uri = new System.Uri(res);
webBrowser1.Url = uri;
}
return 0;
}
updateChangelog();
}
}
This is my code. The problem is – when I do a change i get more errors. I just think i cant do it right… I want the code to change the url code each time the value in the version combobox1 changes. What am I doing wrong?
I tried using async voids.