Click here to Skip to main content
15,895,084 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Winform to pdf save Pin
Richard MacCutchan3-Dec-14 22:17
mveRichard MacCutchan3-Dec-14 22:17 
AnswerRe: Winform to pdf save Pin
syed shanu7-Dec-14 17:40
professionalsyed shanu7-Dec-14 17:40 
QuestionVisual Basicc Code Pin
Member 112782561-Dec-14 14:56
Member 112782561-Dec-14 14:56 
AnswerRe: Visual Basicc Code Pin
JR2121-Dec-14 19:25
JR2121-Dec-14 19:25 
AnswerRe: Visual Basicc Code Pin
Richard MacCutchan1-Dec-14 22:17
mveRichard MacCutchan1-Dec-14 22:17 
Questionvb project help Pin
Member 1126438330-Nov-14 12:36
Member 1126438330-Nov-14 12:36 
AnswerRe: vb project help Pin
Dave Kreskowiak30-Nov-14 13:25
mveDave Kreskowiak30-Nov-14 13:25 
QuestionEvents Pin
jkirkerx30-Nov-14 9:35
professionaljkirkerx30-Nov-14 9:35 
I have a form, with a web browser object on it, in which when the document is complete, the event fires and processes the HTML on the form.

If the web page has child forms on it, then I call another automation class, in which I remove the original handler for the web browser object, and switch to the new handler in the child automation class.

Now I'm done processing child page forms, and I call the next parent form

I'm trying to figure out how to reload the original event handler that I unloaded earlier, so I can continue to process more parent pages.

The layout
1. frm_download_data - the form with the web browser object
There's no event handler

2. html_automation_reseller_product_page.vb - Parent Pages, Original Web Browser Document Handler
Public Sub WebBrowser_Page_DocumentCompleted(sender As Object, e As WebBrowserDocumentCompletedEventArgs)



end sub

3. html_automation_reseller_product_child.vb - Child Pages, New Web Browser Document Handler
Protected Sub WebBrowser_PageChild_DocumentCompleted(sender As Object, e As WebBrowserDocumentCompletedEventArgs)

//Swing back to the parent pages
AddHandler g_WB.DocumentCompleted, AddressOf html_automation_reseller_product_page.WebBrowser_Page_DocumentCompleted //Shared Object?
g_DDL.Text = g_complete_Url
g_WB.Navigate(g_complete_Url)

end sub


Now I want to return back to 2, and reload the Web Browser Handler.

I wonder if I planned this out poorly, and painted myself into a corner here.
I don't' want to make the Handler on 2 shared.
QuestionHelp for code in vb.net Pin
Member 1127214729-Nov-14 16:21
Member 1127214729-Nov-14 16:21 
SuggestionRe: Help for code in vb.net Pin
Richard MacCutchan29-Nov-14 23:26
mveRichard MacCutchan29-Nov-14 23:26 
Questionwordwrap on datagridtextboxcolumn Pin
Member 1126800728-Nov-14 16:39
Member 1126800728-Nov-14 16:39 
QuestionHow can I convert the VBA OCT() function in to a VB .NET function Pin
Stephen Holdorf28-Nov-14 5:17
Stephen Holdorf28-Nov-14 5:17 
AnswerRe: How can I convert the VBA OCT() function in to a VB .NET function Pin
Richard MacCutchan28-Nov-14 5:56
mveRichard MacCutchan28-Nov-14 5:56 
AnswerRe: How can I convert the VBA OCT() function in to a VB .NET function Pin
Richard Deeming28-Nov-14 8:12
mveRichard Deeming28-Nov-14 8:12 
Questiondrawline Pin
JR21227-Nov-14 20:29
JR21227-Nov-14 20:29 
AnswerRe: drawline Pin
Eddy Vluggen28-Nov-14 7:55
professionalEddy Vluggen28-Nov-14 7:55 
GeneralRe: drawline Pin
JR21228-Nov-14 18:11
JR21228-Nov-14 18:11 
GeneralRe: drawline Pin
Eddy Vluggen30-Nov-14 4:44
professionalEddy Vluggen30-Nov-14 4:44 
GeneralRe: drawline Pin
JR2122-Dec-14 20:45
JR2122-Dec-14 20:45 
QuestionApplication Software with Online Database Pin
akashangel26-Nov-14 18:39
akashangel26-Nov-14 18:39 
AnswerRe: Application Software with Online Database Pin
Richard MacCutchan26-Nov-14 20:40
mveRichard MacCutchan26-Nov-14 20:40 
AnswerRe: Application Software with Online Database Pin
Bernhard Hiller27-Nov-14 0:36
Bernhard Hiller27-Nov-14 0:36 
QuestionDeserialize Json and store values Pin
jkirkerx26-Nov-14 6:56
professionaljkirkerx26-Nov-14 6:56 
AnswerRe: Deserialize Json and store values Pin
Eddy Vluggen26-Nov-14 8:09
professionalEddy Vluggen26-Nov-14 8:09 
GeneralRe: Deserialize Json and store values Pin
jkirkerx26-Nov-14 8:44
professionaljkirkerx26-Nov-14 8:44 

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.