Click here to Skip to main content
15,911,360 members
Home / Discussions / C#
   

C#

 
GeneralRe: Customizing the RichTextBox Pin
Cristoff9-May-06 4:56
Cristoff9-May-06 4:56 
QuestionHow to get information from website to my app. Pin
conemajstor9-May-06 4:06
conemajstor9-May-06 4:06 
AnswerRe: How to get information from website to my app. Pin
KrIstOfK9-May-06 4:10
KrIstOfK9-May-06 4:10 
GeneralRe: How to get information from website to my app. Pin
conemajstor9-May-06 4:14
conemajstor9-May-06 4:14 
GeneralRe: How to get information from website to my app. Pin
KrIstOfK9-May-06 4:22
KrIstOfK9-May-06 4:22 
GeneralRe: How to get information from website to my app. Pin
conemajstor9-May-06 4:38
conemajstor9-May-06 4:38 
GeneralRe: How to get information from website to my app. Pin
Ravi Bhavnani9-May-06 8:55
professionalRavi Bhavnani9-May-06 8:55 
QuestionMSHTML: Howto access elements within a <IFRAME> Pin
cweeks786819-May-06 3:46
cweeks786819-May-06 3:46 
I am using the Webbrowser control in VS 2005 C# Express to automate the navigation of pages on a partner's web site. The first page contains an <IFRAME> element:

<iframe style='width:40; height:40'; align='center' marginwidth='0' marginheight='0'
scrolling='no' frameborder='0' id='xyzlogin' name='xyzlogin'
src='https://www.xyzcorp.com/accounts/ServiceLogin'>
</iframe>

Within that frame I need to access these three elements:

<input type="text" name="Email" value="" class="xyz le val" id="Email" size="18">
<input type="password" name="Passwd" class="xyz le val" id="Passwd" size="18">
<input type="submit" name="null" value="Sign in" class="xyz le button"

so I can programmatically: 1)enter the user ID and password, 2)click the 'Sign in' button.

I thought maybe Webbrowser.Document.Window.Frames would be the way to go but that did not seem to work (sorry, I'm not at my development environment right now or I would provide more detail).

Frames is an HtmlWindowCollection. An HtmlWindow has a Document member which is an HTMLDocument. So, would this work:

-Look through the Frames collection until a HtmlWindow named 'xyzlogin' is found.
-Get the Document member for that window and extract the following HTMLElements by ID: Email, Passwd.
-Set the InnerText properties for these elements.
-Find the button element (how? it does not have a valid name or id)
-Use InvokeMember("Click") to click the button.
AnswerRe: MSHTML: Howto access elements within a &lt;IFRAME&gt; Pin
cweeks7868110-May-06 8:03
cweeks7868110-May-06 8:03 
Questionsignificance of IDBConnection or IDBDataAdapter or any interface Pin
kumar.bs9-May-06 3:27
kumar.bs9-May-06 3:27 
AnswerRe: significance of IDBConnection or IDBDataAdapter or any interface Pin
J4amieC9-May-06 3:34
J4amieC9-May-06 3:34 
GeneralRe: significance of IDBConnection or IDBDataAdapter or any interface Pin
kumar.bs9-May-06 3:56
kumar.bs9-May-06 3:56 
GeneralRe: significance of IDBConnection or IDBDataAdapter or any interface Pin
J4amieC9-May-06 4:17
J4amieC9-May-06 4:17 
QuestionServer path for DirectoryInfo Pin
student_rhr9-May-06 3:10
student_rhr9-May-06 3:10 
AnswerRe: Server path for DirectoryInfo Pin
Paul Brower9-May-06 3:21
Paul Brower9-May-06 3:21 
GeneralRe: Server path for DirectoryInfo Pin
student_rhr9-May-06 3:24
student_rhr9-May-06 3:24 
AnswerRe: Server path for DirectoryInfo Pin
albCode9-May-06 3:30
albCode9-May-06 3:30 
QuestionQueryInterface call in .NET (C#) Pin
anderslundsgard9-May-06 3:05
anderslundsgard9-May-06 3:05 
AnswerRe: QueryInterface call in .NET (C#) Pin
Andy Moore9-May-06 4:08
Andy Moore9-May-06 4:08 
QuestionBluetooth Application using C#.Net 2.0 Pin
coolsanjay9-May-06 3:02
coolsanjay9-May-06 3:02 
Questionmy ICryptoTransform class Pin
NaNg152419-May-06 1:35
NaNg152419-May-06 1:35 
QuestionI want to call a function when a new page in a word comes at runtime or can we trap the page break event at runtime in Office projects Pin
rohit_singh16799-May-06 1:18
rohit_singh16799-May-06 1:18 
QuestionHow to disable maximize/restore button of a MDI child form Pin
t800t89-May-06 1:14
t800t89-May-06 1:14 
AnswerRe: How to disable maximize/restore button of a MDI child form Pin
t800t89-May-06 1:30
t800t89-May-06 1:30 
Questionproblem when using 2 forms in a project Pin
dinhzap9-May-06 1:11
dinhzap9-May-06 1:11 

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.