473,394 Members | 1,887 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How to see again this control that became invisible?

Hello,
I have a WebBrowser1(0) on my form in my vb projet, with this page that
is display http://www.kanguk.com/info_pages/map_large.htm
If I clic on that Internet Page, my control WebBrowser1(0) go on (no more
display) to my eyes, I don't see no more this control.
But when I do 'MsgBox (WebBrowser1(0).Width)' this indicate his width,
then it exist but I don't see it even I put 'WebBrowser1(0)visible=true'.
How to do to see it on my vb form?
Raymond H.
lo******@sympatico.ca
Jul 17 '05 #1
2 2019
That page contains javascript that will close the window when the window is
clicked. Once that's done the webbrowser is closed.

You can only override this by downloading the page to a file, opening it for
editing, deleting the java code:

<SCRIPT LANGUAGE="JavaScript">
function closeWin() {
window.close();
}
if (window.Event) document.captureEvents(Event.ONCLICK);
document.onclick = closeWin;
</SCRIPT>

... then showing your modified file instead.

Either that or download the file to disk, read the img tag data

<img src="images/map760x1008.jpg" width="760" height="1008">

.... extract the image URL, combine it with the base URL for the site, and
pass that as the Navigate2 value
(http://www.kanguk.com/info_pages/images/map760x1008.jpg)

--

Randy Birch
MVP Visual Basic
http://www.mvps.org/vbnet/
Please respond only to the newsgroups so all can benefit.
"Raymond H." <di*******@hotmail.com> wrote in message
news:tU*******************@news20.bellglobal.com.. .
: Hello,
: I have a WebBrowser1(0) on my form in my vb projet, with this page
that
: is display http://www.kanguk.com/info_pages/map_large.htm
: If I clic on that Internet Page, my control WebBrowser1(0) go on (no more
: display) to my eyes, I don't see no more this control.
: But when I do 'MsgBox (WebBrowser1(0).Width)' this indicate his width,
: then it exist but I don't see it even I put 'WebBrowser1(0)visible=true'.
: How to do to see it on my vb form?
: Raymond H.
: lo******@sympatico.ca
:
:
Jul 17 '05 #2
Hello Mr. Birch,
I have just read you in the other group. I thank you for this answer
:-)
Raymond H.

"Randy Birch" <rg************@mvps.org> a écrit dans le message de
news:qY********************@news01.bloor.is.net.ca ble.rogers.com...
That page contains javascript that will close the window when the window is clicked. Once that's done the webbrowser is closed.

You can only override this by downloading the page to a file, opening it for editing, deleting the java code:

<SCRIPT LANGUAGE="JavaScript">
function closeWin() {
window.close();
}
if (window.Event) document.captureEvents(Event.ONCLICK);
document.onclick = closeWin;
</SCRIPT>

.. then showing your modified file instead.

Either that or download the file to disk, read the img tag data

<img src="images/map760x1008.jpg" width="760" height="1008">

... extract the image URL, combine it with the base URL for the site, and
pass that as the Navigate2 value
(http://www.kanguk.com/info_pages/images/map760x1008.jpg)

--

Randy Birch
MVP Visual Basic
http://www.mvps.org/vbnet/
Please respond only to the newsgroups so all can benefit.
"Raymond H." <di*******@hotmail.com> wrote in message
news:tU*******************@news20.bellglobal.com.. .
: Hello,
: I have a WebBrowser1(0) on my form in my vb projet, with this page
that
: is display http://www.kanguk.com/info_pages/map_large.htm
: If I clic on that Internet Page, my control WebBrowser1(0) go on (no more : display) to my eyes, I don't see no more this control.
: But when I do 'MsgBox (WebBrowser1(0).Width)' this indicate his width,
: then it exist but I don't see it even I put 'WebBrowser1(0)visible=true'. : How to do to see it on my vb form?
: Raymond H.
: lo******@sympatico.ca
:
:

Jul 17 '05 #3

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

Similar topics

22
by: Keith Tizzard | last post by:
I know this subject has been discussed many times and I do not wish to go over all the ground again but I have a particular problem. In the code for a Form I always use the dot notation to refer...
2
by: James | last post by:
Hi I have set up a subform in datasheet mode containing a second subform also in datasheet mode in order to be able to open it as a subdatasheet. In my application I make the first subform...
3
by: Susan Bricker | last post by:
Greetings. I have three forms that are open at the same time. They are related and cascading. The first form (frmEventAdd) is the anchor. Each event can have many Trials. The second form is...
8
by: tatemononai | last post by:
Not to rant, but just in general, ASP.Net seems to be a lot more hassle than traditional ASP. I enjoyed lots of dynamic GUI work with traditional ASP. And I'm a desktop developer by trade, so I...
6
by: Nick Stansbury | last post by:
Hi, I have a loop running on Page_PreRender that sets a number of controls to invisible based on a set of criteria. Before I do this however, I set all of the drop down lists to be visible with...
6
by: Selden McCabe | last post by:
I have a form with a bunch of image buttons. When the user moves the mouse over a button, I want to do two things: 1. change the Imagebutton's picture, and 2. make another control visible. I'm...
0
by: Michael | last post by:
Hi I created a VB.NET UserControl with a StatusStrip on it. This strip is docked on the bottom! I compiled it with COM Compatibilty, i.e. i want to use it also in an activeX container. ok,...
0
by: Michael | last post by:
Hi I created a VB.NET UserControl with a StatusStrip on it. This strip is docked on the bottom! I compiled it with COM Compatibilty, i.e. i want to use it also in an activeX container. ok,...
7
by: =?Utf-8?B?Qm9iQWNoZ2lsbA==?= | last post by:
I need to programmatically add an invisible control to my form that will enable me to trigger MouseEnter and MouseLeave code relative to the control area. Is this possible to add the control and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
marktang
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,...
0
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...
0
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...

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.