Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

VS 2013 Web Browser and popups stop the msgbox

$
0
0
If this is in the wrong forum then tell me where it should be. I am still a hobbyist and am not a programmer where I work but I am a network administrator and was asked if I could make this KIOSK.
I made a windows form web browser in VB 2013 and it is working very well for our college students to use as a KIOS.
I was able to get 90% of it working effectively and tried the Microsoft AxWebbrowser control first but it did not do some things I needed it to do, So I switched to the standard Webbrowser which does not have Navigate2 in it. I have an issue where when I connect to a particular website then want to logout of that website, it show a Windows Form with OK, Quit or Cancel like a standard windows form. It is almost like a popup where I want to intercept that form and make the browser close in my own code. I actually prefer to do application.restart and it will work fine. I cannot figure out how to catch that message box before it appears. When it does happen I can hit the Quit button and my webbrowser locks up. this is the code I see in the internet browser when I View Code.

<ie:menuitem id="zz7_ID_Logout" type="option" onMenuClick="STSNavigate2(event,'/_layouts/SignOut.aspx');" text="Sign Out" description="Logout of this site." menuGroupId="200"></ie:menuitem>

Viewing all articles
Browse latest Browse all 27554

Trending Articles