AboutSyed Rizwan Muhammad Rizvi Expertise I can answers questions regarding web based and desktop based programming in VB.Net. Which can include SOAP, XML, Custom Controls, COM Interoperability etc.
Experience Have been working in this specific area for last 2 years previously I was a VB 6 Developer with experties in other languages as well. Total 10 years of programming experience.
Expert: Syed Rizwan Muhammad Rizvi Date: 11/25/2006 Subject: new tab in Maxthon browser then then wait for load to complete
Question Hi.
I am using VB.NET 2003. My application will request up to 2 - 40 records from a database by using a modified URL. The code below, when part of a loop works perfectly.
Here is the problem. I use a "tabbed browser" called Maxthon. As I said, the code below works perfectly, but it continually writes over the last tab in Maxthon. I want to write to a new tab every time.
Maxthon is a shell for internet explorer. I suspect, that if the code below created seperate instance of Internet explorer, the all would be fine.
I am using VB.Net 2003.
Thank you
.
Imports System.Threading
Private Sub LoadWebpage_and_Wait(ByVal TheURL As String)
wb.Navigate(TheURL)
ShowWindow(wb.HWND(), SW_SHOWMAXIMIZED)
wb.Visible = True
While wb.ReadyState < SHDocVw.tagREADYSTATE.READYSTATE_COMPLETE
Thread.Sleep(100)
End While
End Sub
Answer I havent worked with Maxthon before, But I think there should be a tabs collection to create a new tab and then u can use that tabs or windows object to navigate. Alternatively you might still use the similar window creation method it might ask for a new paratemeter whether the new window should be tabbed or stand alone.