Click here to Skip to main content
15,886,110 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questioncheck smtp connection before sending ? Pin
alejx9-Nov-12 9:02
alejx9-Nov-12 9:02 
AnswerRe: check smtp connection before sending ? Pin
Dave Kreskowiak9-Nov-12 9:52
mveDave Kreskowiak9-Nov-12 9:52 
GeneralRe: check smtp connection before sending ? Pin
alejx9-Nov-12 13:47
alejx9-Nov-12 13:47 
GeneralRe: check smtp connection before sending ? Pin
Dave Kreskowiak9-Nov-12 14:15
mveDave Kreskowiak9-Nov-12 14:15 
QuestionAllow a Desktop app to check for JavaScript errors on given URL? Pin
pogowolf9-Nov-12 6:17
pogowolf9-Nov-12 6:17 
QuestionUsing large XML dataset efficiently Pin
Dominick Marciano7-Nov-12 8:16
professionalDominick Marciano7-Nov-12 8:16 
AnswerRe: Using large XML dataset efficiently Pin
David Mujica7-Nov-12 9:10
David Mujica7-Nov-12 9:10 
Questionvb.net Web Browser Control! how to automate when web page is using frames. Pin
Kieran Sloan7-Nov-12 4:27
Kieran Sloan7-Nov-12 4:27 
A web page I'm trying to automate has come to my attention that it using frames. the source is and link to page is below:

url: http://www.konaeuropeadmin.com/[^]

My code so far...

VB
Dim theElementCollection As HtmlElementCollection = KonaBrwsr.Document.GetElementsByTagName("input")

        For Each curElement As HtmlElement In theElementCollection

            Dim controlName As String = curElement.GetAttribute("name")

            If controlName = "loginname" Then
                curElement.SetAttribute("Value", "username")
            End If

            If controlName = "loginpassword" Then
                curElement.SetAttribute("Value", "password")
            End If

            If controlName = "savepassword" Then
                curElement.SetAttribute("Value", "True")
            End If

        Next

        Dim theElementCollection2 As HtmlElementCollection = KonaBrwsr.Document.GetElementsByTagName("input")

        For Each curElement2 As HtmlElement In theElementCollection2

            Dim controlName2 As String = curElement2.GetAttribute("name").ToString

            If controlName2 = "login" Then
                curElement2.InvokeMember("Click")
            End If

        Next



I know this works as I've used the same procedure for all the webpages I'm trying to automate... 15 in total; downloading files automatically.

The problem with this site is that it uses frames, and although I know my code work for a simple HTML form, I have no idea how to repeat this procedure for a framed website.

Someone please help, I've been on this for a while now and simply not working for me.

Thank you all in advance.
AnswerRe: vb.net Web Browser Control! how to automate when web page is using frames. Pin
Zaf Khan26-Nov-12 2:13
Zaf Khan26-Nov-12 2:13 
QuestionHelp with Error Message Pin
GeorgieMPorgie5-Nov-12 3:32
GeorgieMPorgie5-Nov-12 3:32 
AnswerRe: Help with Error Message Pin
Wayne Gaylard5-Nov-12 4:05
professionalWayne Gaylard5-Nov-12 4:05 
GeneralRe: Help with Error Message Pin
GeorgieMPorgie5-Nov-12 5:03
GeorgieMPorgie5-Nov-12 5:03 
GeneralRe: Help with Error Message Pin
Wayne Gaylard5-Nov-12 18:31
professionalWayne Gaylard5-Nov-12 18:31 
QuestionUse Reportvier to Show Table with Unknown Number of Columns Pin
Member 76634803-Nov-12 15:03
Member 76634803-Nov-12 15:03 
AnswerRe: Use Reportvier to Show Table with Unknown Number of Columns Pin
Dave Kreskowiak4-Nov-12 4:25
mveDave Kreskowiak4-Nov-12 4:25 
AnswerRe: Use Reportvier to Show Table with Unknown Number of Columns Pin
Mycroft Holmes4-Nov-12 11:54
professionalMycroft Holmes4-Nov-12 11:54 
QuestionHow can i retrieve image to pictureBox ? Pin
heinhtataung1-Nov-12 18:04
heinhtataung1-Nov-12 18:04 
AnswerRe: How can i retrieve image to pictureBox ? Pin
Eddy Vluggen2-Nov-12 0:57
professionalEddy Vluggen2-Nov-12 0:57 
AnswerRe: How can i retrieve image to pictureBox ? Pin
SZLMCL6-Nov-12 23:20
SZLMCL6-Nov-12 23:20 
QuestionHow can i save image in my N-tier application? Pin
heinhtataung31-Oct-12 20:20
heinhtataung31-Oct-12 20:20 
AnswerRe: How can i save image in my N-tier application? Pin
Eddy Vluggen1-Nov-12 3:05
professionalEddy Vluggen1-Nov-12 3:05 
QuestionAI program Pin
Casey Edison31-Oct-12 5:04
Casey Edison31-Oct-12 5:04 
AnswerRe: AI program Pin
Simon_Whale31-Oct-12 5:08
Simon_Whale31-Oct-12 5:08 
GeneralRe: AI program Pin
Casey Edison31-Oct-12 5:13
Casey Edison31-Oct-12 5:13 
AnswerRe: AI program Pin
Richard MacCutchan31-Oct-12 7:59
mveRichard MacCutchan31-Oct-12 7:59 

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.