Click here to Skip to main content
15,894,410 members
Home / Discussions / C#
   

C#

 
AnswerRe: Error in loading excel file in windows 7 ... Pin
Eddy Vluggen16-Apr-12 8:28
professionalEddy Vluggen16-Apr-12 8:28 
Questionsoap headers are not added Pin
anandsurya16-Apr-12 0:19
anandsurya16-Apr-12 0:19 
AnswerPlease ignore - cross posted. Pin
Pete O'Hanlon16-Apr-12 0:26
mvePete O'Hanlon16-Apr-12 0:26 
Question.net Framework Pin
Mandeep Sembhi15-Apr-12 23:04
Mandeep Sembhi15-Apr-12 23:04 
AnswerRe: .net Framework PinPopular
egenis15-Apr-12 23:13
egenis15-Apr-12 23:13 
AnswerRe: .net Framework Pin
VJ Reddy15-Apr-12 23:16
VJ Reddy15-Apr-12 23:16 
QuestionPlease I need help on this because it's not filling the form Pin
relicon15-Apr-12 15:39
relicon15-Apr-12 15:39 
AnswerRe: Please I need help on this because it's not filling the form Pin
relicon15-Apr-12 15:40
relicon15-Apr-12 15:40 
This is what I tried below, but it does not work

C#
private void button11_Click(object sender, EventArgs e)
        {

          
      webBrowser1.Document.GetElementById("ContinueButton").InvokeMember("Click");


            while (webBrowser1.ReadyState != WebBrowserReadyState.Complete)
            {
                Application.DoEvents();
            }


      webBrowser1.Document.GetElementById("secretnumber").SetAttribute("value", "320");

      {

If button11 is clicked, it will automatically click an HTML Button with the element ID of "ContinueButton." Because "ContinueButton" is clicked, it would lead to the next html page. And in this next html page contains a web form with element ID of "secretnumber." I want that web form to be auto filled with "320" but it didn't fill it.


How can I make it wait for the next page to load and then automatically fill the web form with "320"?
GeneralRe: Please I need help on this because it's not filling the form Pin
BobJanova15-Apr-12 23:35
BobJanova15-Apr-12 23:35 
GeneralRe: Please I need help on this because it's not filling the form Pin
Member 281270416-Apr-12 0:24
professionalMember 281270416-Apr-12 0:24 
GeneralRe: Please I need help on this because it's not filling the form Pin
Pete O'Hanlon16-Apr-12 0:39
mvePete O'Hanlon16-Apr-12 0:39 
QuestionCRC-ITU calculation in c# Pin
Hilman Anshori15-Apr-12 14:25
Hilman Anshori15-Apr-12 14:25 
AnswerRe: CRC-ITU calculation in c# Pin
Wes Aday15-Apr-12 16:54
professionalWes Aday15-Apr-12 16:54 
AnswerRe: CRC-ITU calculation in c# Pin
BobJanova15-Apr-12 23:42
BobJanova15-Apr-12 23:42 
QuestionDispose groupbox Pin
Ronny Portier15-Apr-12 3:06
Ronny Portier15-Apr-12 3:06 
AnswerRe: Dispose groupbox Pin
Luc Pattyn15-Apr-12 3:15
sitebuilderLuc Pattyn15-Apr-12 3:15 
GeneralRe: Dispose groupbox Pin
Ronny Portier15-Apr-12 5:21
Ronny Portier15-Apr-12 5:21 
AnswerRe: Dispose groupbox Pin
Luc Pattyn15-Apr-12 5:44
sitebuilderLuc Pattyn15-Apr-12 5:44 
GeneralRe: Dispose groupbox Pin
phil.o15-Apr-12 5:32
professionalphil.o15-Apr-12 5:32 
AnswerRe: Dispose groupbox Pin
DaveyM6915-Apr-12 5:49
professionalDaveyM6915-Apr-12 5:49 
AnswerRe: Dispose groupbox Pin
Abhinav S15-Apr-12 6:05
Abhinav S15-Apr-12 6:05 
AnswerRe: Dispose groupbox Pin
Luc Pattyn15-Apr-12 6:18
sitebuilderLuc Pattyn15-Apr-12 6:18 
AnswerRe: Dispose groupbox Pin
Abhinav S15-Apr-12 6:51
Abhinav S15-Apr-12 6:51 
AnswerRe: Dispose groupbox Pin
Luc Pattyn15-Apr-12 6:58
sitebuilderLuc Pattyn15-Apr-12 6:58 
GeneralRe: Dispose groupbox Pin
Abhinav S15-Apr-12 7:23
Abhinav S15-Apr-12 7:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.