473,765 Members | 2,066 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

AxWebBrowser in windows form NewWindow2() event

Hello, I am trying to provide a handler for the NewWindow2() event in this
windows forms application. Here is the handler:
Private Sub wbrPOS_NewWindo w2(ByVal sender As Object, ByVal e As
AxSHDocVw.DWebB rowserEvents2_N ewWindow2Event) Handles wbrPOS.NewWindo w2
Dim frmPopUpCatcher As New frmBrowse2
frmPopUpCatcher .wbrPOS2.Regist erAsBrowser = True
e.ppDisp = wbrPOS.Applicat ion
frmPopUpCatcher .ShowDialog()
End Sub

The window.open() happens on frmBrowse (I am trying to use a second form
here) trying to get away from running the form load event for the first form
since a lot of authentication info is being passed in there. So far, nothing
shows in my new window. I saw the support document on how to implement this.
Tried that to no result. Any help/suggestion appreciated. Thanks.
Nov 21 '05 #1
2 2372
Sergiu,

This events starts when inside this window a new window is created (popup).
However now it is that a part of IE itself so probably will that be blocked
now.

Just a guess

Cor
Nov 21 '05 #2
the new window that is triggered by the newwindow2() event just seems to be
empty on return. It is not being blocked.

"Cor Ligthert" wrote:
Sergiu,

This events starts when inside this window a new window is created (popup).
However now it is that a part of IE itself so probably will that be blocked
now.

Just a guess

Cor

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1537
by: Sergiu Dev | last post by:
I am working on a win forms application trying to control the DOM of a page that starts several javascript functions. I can control window.open() functions with the newwindow2() event of the AxWebBrowser control. However, I cannot seem to be able to control the DOM of a modal dialog window started by a javascript function using window.showModalDialog(). Any suggestions would be greatly appreciated.
0
2917
by: Matthias Kwiedor | last post by:
I have a aplication which hosts an axWebbrowser. This activex component needs about 10 to 15 mb of memory. Because i have a option to move the aplication to tray icon and do some timer work i don't want that it just spends over 10mb for nothing. So i remove the axwebbrowser with axwebbrowser1.dispose() which works fine. After show the application back from the tray icon i will implement the axwebbrowser again with the same i did it...
3
10207
by: Clint MacDonald | last post by:
I have used the AxWebBrowser in a Visual Basic Project... I found that both Framework 1.0 and 1.1 had to be installed for it to work properly. I now have found that in Studio 2003, that the probablem has come back even if both are installed. When I open a windows form that has the Browser on it and try to Navigate to a page using the OnEnter or OnLoad events, the page just sits there and does
11
1061
by: Bernie Yaeger | last post by:
I have an axwebbrowser control in a windows app and I want it to start at the user's IE start page, and to start when the form opens, but I can't get it to start in the form's load event. I even tried ending the load event with gobutton.performclick() but it doesn't work; the click event is not entered. Any ideas how I can do this? Thanks for any help.
2
1539
by: hplloyd | last post by:
Hi, My question is very simple I am sure but I cant seem to find a solution anywhere.... I have a windows form in C# and I have added an axWebBrowser control. When the form loads I am trying to display a web page in the control.... but I have tried Navigate and Navigate2 methods and whatever I try nothing is displayed... The code that I am using in the forms load event is
12
6930
by: Don Juan | last post by:
I have had a terrible 10 days period with AxWebBrowser ActiveX Control. I can't understand why there is no goog documentation and tutorials for that monster.
0
1958
by: elphantasmo | last post by:
Hi, I have created a hosted AxWebBrowser control and I handle the NewWindow2 event to open new windows in my own forms. Our application accesses a JSF (Java Server Faces) backend with some custom controls created by Oracle (specifically a date/calendar popup to select a date). These custom controls behave in a strange way, i.e. they "fade" the parent window, make the child popup modal but apparently not by using "showModalDialog". It...
2
2116
by: Michael | last post by:
Hi experts, I am using axWebBrowser in windows form to load web pages. There is a page that contains a group of buttons. (More than 10 buttons.) The source code behind each button is like below: <input type="submit" name="Submit" value="Submit" onClick="afm.__act.value=' SITE.9.20081206A__id.30.AdminsSelected.adp.actRegister';return SubmitOnlyOnce();">
1
1354
by: tim2006 | last post by:
When i try to run the program, it just hangs. If i remove the axwebbrowser control it works fine. Any ideas? Here is my code: class1.vb Imports System.Windows.Forms Imports System.Threading
0
9404
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10164
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10007
jinu1996
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9959
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5277
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3926
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.