Click here to Skip to main content
15,918,742 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Deserialize Json and store values [Solved] Pin
jkirkerx26-Nov-14 8:43
professionaljkirkerx26-Nov-14 8:43 
QuestionDrag drop multiple rows between datagrids Pin
tommydk26-Nov-14 1:09
tommydk26-Nov-14 1:09 
AnswerRe: Drag drop multiple rows between datagrids Pin
Eddy Vluggen26-Nov-14 8:12
professionalEddy Vluggen26-Nov-14 8:12 
GeneralRe: Drag drop multiple rows between datagrids Pin
tommydk27-Nov-14 7:55
tommydk27-Nov-14 7:55 
GeneralRe: Drag drop multiple rows between datagrids Pin
Eddy Vluggen28-Nov-14 5:26
professionalEddy Vluggen28-Nov-14 5:26 
GeneralRe: Drag drop multiple rows between datagrids Pin
tommydk29-Nov-14 6:19
tommydk29-Nov-14 6:19 
GeneralRe: Drag drop multiple rows between datagrids Pin
Eddy Vluggen30-Nov-14 4:46
professionalEddy Vluggen30-Nov-14 4:46 
GeneralRe: Drag drop multiple rows between datagrids Pin
tommydk12-Feb-15 10:18
tommydk12-Feb-15 10:18 
GeneralRe: Drag drop multiple rows between datagrids Pin
Eddy Vluggen12-Feb-15 11:37
professionalEddy Vluggen12-Feb-15 11:37 
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 

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.