private void frmBrowserWindow_Load(object sender, EventArgs e) { LoginVK loginController = new LoginVK(); AuthorizationVK authrorizationController = new AuthorizationVK(); int applicationId = 5002040; int scope = 1; //authrorizationController.authorize(); webBrowser.Navigate(String.Format("http://api.vkontakte.ru/oauth/authorize?client_id={0}&scope={1}&display=popup&response_type=token", applicationId, scope)); }