Click here to Skip to main content
15,889,833 members
Home / Discussions / C#
   

C#

 
GeneralRe: Error in loading excel file in windows 7 ... Pin
Wes Aday16-Apr-12 9:02
professionalWes Aday16-Apr-12 9:02 
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 
I made a button that if clicked, it would get the element ID of an HTML button which is "ContinueButton" and then it would invoke a click on it. Just as coded below. So basically, it will click this HTML button and it would eventually lead to the next HTML page.



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

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

Now, after the next HTML page has loaded, it contains a web form. This web form has an element ID by "secretnumber."

I made a code below and it should fill this web form.


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

        }


However, the program stopped and it didn't fill the web form ("secretnumber"). Please help me.

I added this code too but it didn't seem to work.

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

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 
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 

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.