Hi,
I have a small application that extends the webBrowser object. There is
only a single form in this application, with the webBrowser inside.
Among other things, I catch the NewWindow2 event. This is done so i
could open a new instance of my browser when a user clicks on a button
that calls the javascript window.open command (without doing it, a new
internet explorer is opened).
I migrated the project to Visual Studio 2005, .NET 2.0, but the
migration process failed to supply an appropriate code.
I saw samples for Visual Studio 2003 .NET 1.1, but it seems like there
have been changes since.
this is the VB 6.0 code:
Private Sub brwWebBrowser_NewWindow2(ppDisp As Object, Cancel As
Boolean)
Dim newFrm As frmBrowser
Set newFrm = New frmBrowser
newFrm.brwWebBrowser.RegisterAsBrowser = True
Set ppDisp = newFrm.brwWebBrowser.Object
newFrm.Visible = True
newFrm.Show
End Sub
thanks for your help 2 2025
Ehud,
You are referencing to an webbrowser as far as I know can that only be one.
You can create two webbrowser forms by dragging the browser on it (that
could in 2003) and open than that form in the way you did.
I hope this helps,
Cor
Ehud,
What is the exact error you are getting during the migration?
--
Colin Neller http://www.colinneller.com/blog
"Ehud_A" <eh***@hotmail.co.il> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com... Hi,
I have a small application that extends the webBrowser object. There is only a single form in this application, with the webBrowser inside. Among other things, I catch the NewWindow2 event. This is done so i could open a new instance of my browser when a user clicks on a button that calls the javascript window.open command (without doing it, a new internet explorer is opened).
I migrated the project to Visual Studio 2005, .NET 2.0, but the migration process failed to supply an appropriate code. I saw samples for Visual Studio 2003 .NET 1.1, but it seems like there have been changes since.
this is the VB 6.0 code:
Private Sub brwWebBrowser_NewWindow2(ppDisp As Object, Cancel As Boolean)
Dim newFrm As frmBrowser Set newFrm = New frmBrowser newFrm.brwWebBrowser.RegisterAsBrowser = True
Set ppDisp = newFrm.brwWebBrowser.Object
newFrm.Visible = True newFrm.Show
End Sub
thanks for your help This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Trevor Fairchild |
last post by:
I'm writing a program that is designed for quick navigation using
specific buttons on the keyboard. In doing this, I have added a
KeyPress event for every control on the form to intercept the key...
|
by: Doe |
last post by:
I've been trying this for months. Doesn't work.
I've used the code in this article,
http://support.microsoft.com/kb/311288/en-us, HOW TO: Invoke the Find,
View Source, and Options Dialog Boxes...
|
by: cweeks78681 |
last post by:
I am porting some VB6 code that automates navigation through a web page
by getting all the <a> tags into a collection and then calling the
Click method on the appropriate one.
How do I click a...
|
by: jasonhartsoe |
last post by:
I'm using Visual Studio 2005 Team Edition....using visual basic. I'm
trying to use the webbrowser control. In the webbrowser control I have
it got to a page where there is a form. It waits for...
|
by: jeremy |
last post by:
I have an ASP.Net 2.0 application running on Windows Server 2003. The
application displays properly in Internet Explorer, however, when I use
a browser control embedded in a .net form, I get an...
|
by: Robson Siqueira |
last post by:
Folks,
I am facing a problem. I am trying to manipulate the HTML data (thru the
Document and DocumentText properties) of the WebBrowser object
(System.Windows.Forms).
The problem is that the...
|
by: kimiraikkonen |
last post by:
Hi,
I'm using Visual C# .NET 2005, i have 2 forms when a button in form1
is clicked, second form must be shown, and second form (form2) has
webbrowser control associated to run on load time.
the...
|
by: Andy B |
last post by:
I have some code that needs to go in a WebBrowser.DocumentComplete event.
The problem is that the code doesn't run for some reason. Here is the code:
BugFixList.Items.Add("Test")
it seems like...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |