public void auth() { string appid = "5065032"; string scope = "audio"; string url = "https://oauth.vk.com/authorize?client_id=" + appid + "&display=page&redirect_uri=https://oauth.vk.com/blank.html&scope=" + scope + "&response_type=token&v=5.37"; FormAuth f2 = new FormAuth(); f2.Show(); WebBrowser browser = (WebBrowser)f2.Controls["webBrowser1"]; browser.Navigate(url); }
public void auth() { string appid = "5065032"; string scope = "audio"; string url = "https://oauth.vk.com/authorize?client_id="+appid+"&display=page&redirect_uri=https://oauth.vk.com/blank.html&scope="+scope+"&response_type=token&v=5.37"; FormAuth f2 = new FormAuth(); f2.Show(); WebBrowser browser = (WebBrowser)f2.Controls["webBrowser1"]; browser.Navigate(url); //Создаём новый поток, им будет функция F2 newThread = new Thread(F2); //Запускаем поток на выполнение newThread.Start(); }