Click here to Skip to main content
15,889,808 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionhow to convert excel sheet to xml Pin
Member 1126441326-Nov-14 0:37
Member 1126441326-Nov-14 0:37 
AnswerRe: how to convert excel sheet to xml Pin
Eddy Vluggen26-Nov-14 8:15
professionalEddy Vluggen26-Nov-14 8:15 
Questioni need help with a vb project anything helps! :) Pin
Member 1126438325-Nov-14 17:49
Member 1126438325-Nov-14 17:49 
AnswerRe: i need help with a vb project anything helps! :) Pin
Eddy Vluggen26-Nov-14 8:19
professionalEddy Vluggen26-Nov-14 8:19 
GeneralRe: i need help with a vb project anything helps! :) Pin
Member 1126438326-Nov-14 8:31
Member 1126438326-Nov-14 8:31 
GeneralRe: i need help with a vb project anything helps! :) Pin
Eddy Vluggen26-Nov-14 10:27
professionalEddy Vluggen26-Nov-14 10:27 
GeneralRe: i need help with a vb project anything helps! :) Pin
rx7man1-Dec-14 9:30
rx7man1-Dec-14 9:30 
Questionwebbrowser class, automation, document complete Pin
jkirkerx23-Nov-14 13:56
professionaljkirkerx23-Nov-14 13:56 
This is my first web page automation project, and I don't understand a couple of things.

So I have a form with a WebBrowser Object on it, I load the form, navigate to the web page, the web page loads ...

So the DocumentCompleted event fires?

I noticed it fires for every document requested, so I isolated the page I wanted
The page loads fine first.
Then I fire my automation script, which fixes the errors on the page, fills in the textboxes
I can see the page with my values, for about a millisecond.

[The part I don't' understand]
Then the page loads again, this time with scripts errors for everything, jquery and so forth, and the CSS is blown out.

[Question]
Am I wasting my time with these event handlers,
When I write back to the WebBrowser1.DocumentText, am I forcing the page to load again?

Private Sub frm_download_Data_Load(sender As Object, e As EventArgs) Handles Me.Load

       'Suppress the Script Errors
       SuppressScriptErrorsOnly(WebBrowser1, False)

       'Navigate the the Reseller Login Page
       WebBrowser1.Navigate(ddl_URL.Text)

   End Sub
   Private Sub WebBrowser1_DocumentCompleted(sender As Object, e As WebBrowserDocumentCompletedEventArgs) _
       Handles WebBrowser1.DocumentCompleted

       If Not (WebBrowser1.Url.AbsoluteUri = "about:blank") Then
           If (e.Url.AbsolutePath = WebBrowser1.Url.AbsolutePath) Then

               Select Case WebBrowser1.Url.AbsoluteUri

                   Case "http://page.asp"

                       //Run the Automation
                       AddHandler CType(sender, WebBrowser).Document.Window.Error, AddressOf Window_Error
                       http_automation_login.automate(WebBrowser1, g_userName, g_password)
                       RemoveHandler CType(sender, WebBrowser).Document.Window.Error, AddressOf Window_Error

               End Select

           End If
       End If

   End Sub

AnswerRe: webbrowser class, automation, document complete [solved] Pin
jkirkerx23-Nov-14 16:58
professionaljkirkerx23-Nov-14 16:58 
AnswerRe: webbrowser class, automation, document complete Pin
Richard Deeming24-Nov-14 2:46
mveRichard Deeming24-Nov-14 2:46 
GeneralRe: webbrowser class, automation, document complete Pin
jkirkerx24-Nov-14 9:51
professionaljkirkerx24-Nov-14 9:51 
Questionexcel data validation using xml Pin
Member 1125000520-Nov-14 15:40
Member 1125000520-Nov-14 15:40 
AnswerRe: excel data validation using xml Pin
Chris Quinn20-Nov-14 20:41
Chris Quinn20-Nov-14 20:41 
Questionhow to get SQL DATA DIRECTORY PATH USING VB.NET?? Pin
yogeshysankar20-Nov-14 1:39
yogeshysankar20-Nov-14 1:39 
AnswerRe: how to get SQL DATA DIRECTORY PATH USING VB.NET?? Pin
Otekpo Emmanuel20-Nov-14 11:37
Otekpo Emmanuel20-Nov-14 11:37 
GeneralRe: how to get SQL DATA DIRECTORY PATH USING VB.NET?? Pin
yogeshysankar20-Nov-14 17:48
yogeshysankar20-Nov-14 17:48 
AnswerRe: how to get SQL DATA DIRECTORY PATH USING VB.NET?? Pin
Chris Quinn20-Nov-14 20:40
Chris Quinn20-Nov-14 20:40 
Questionhow to get SQL DATA DIRECTORY PATH USING VB.NET Pin
yogeshysankar20-Nov-14 1:38
yogeshysankar20-Nov-14 1:38 
QuestionArrays in vb Pin
Otekpo Emmanuel19-Nov-14 4:13
Otekpo Emmanuel19-Nov-14 4:13 
AnswerRe: Arrays in vb Pin
Tim Carmichael19-Nov-14 4:31
Tim Carmichael19-Nov-14 4:31 
GeneralRe: Arrays in vb Pin
Otekpo Emmanuel19-Nov-14 5:02
Otekpo Emmanuel19-Nov-14 5:02 
GeneralRe: Arrays in vb Pin
Simon_Whale19-Nov-14 5:42
Simon_Whale19-Nov-14 5:42 
AnswerRe: Arrays in vb Pin
ZurdoDev19-Nov-14 5:28
professionalZurdoDev19-Nov-14 5:28 
GeneralRe: Arrays in vb Pin
Otekpo Emmanuel19-Nov-14 6:11
Otekpo Emmanuel19-Nov-14 6:11 
AnswerRe: Arrays in vb Pin
ZurdoDev19-Nov-14 6:16
professionalZurdoDev19-Nov-14 6:16 

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.