private void StartNewWindowThread(Prozessval p) { try { newWindowThread = new Thread(() => { WebBrowser wb = new WebBrowser(); String data = "myval=" + ControlHelper.SerializeXMLString(p); System.Text.Encoding encod = System.Text.Encoding.UTF8; byte[] bytVal = encod.GetBytes(data); wb.Navigate("myurl", "_Blank", bytVal, "Content-Type: application/x-www-form-urlencoded"); Application.Run(); }); newWindowThread.SetApartmentState(ApartmentState.STA); newWindowThread.Start(); } catch(Exception ex) { throw ex; } }
Application.Start
Invoke/BegingInvoke
WebBrowser
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)