Can anyone please tell me how to delete WebBrowser control's cookie? Suppose I visited www.gmail.com through my application using webbrowser control. Now after visiting I want to delete the cookies stored by www.gmail.com .
I want to know how to sort out this problem? I have searched the net a lot, but no help, all methods like webbrowserCtl.Document.Cookies = "" or null doesnot serve the purpose at all.
i have a C# windows application form with various controls such as textbox ,combo box,date time picker etc. i want that on clicking a button PRINT the data entered by the user in the controls should be added to particular cells of an existing Excel sheet (for e.g. i have to add the data in textBox1 to a particular cell of sheet1.xls saved on desktop)and then the sheet should be printed..i don't want the data to be saved on the sheet as i want that the next time i click the PRINT button the new data should be entered to the same cell. ...plz help and thanks in advance
I have a string stored in a variable, say
I want to extract the text between <link> and </link> and also the text between <title> and </title> in two different arrays.
How to do this, please help me. if anyone have code or any helpfull link please reply back.
string sFull = "this the is test for the true";
string sToSearch = "the";
int iFirst = sFull.IndexOf(sToSearch);
int iSecond = sFull.IndexOf(sToSearch, iFirst + sToSearch.Length);
string sText = sFull.Substring(iFirst + sToSearch.Length, iSecond - iFirst -sToSearch.Length);