How To Block Popups, Images, Javascript, Java, ActiveX In A Webbrowser? [Unresolved]
Anyone know? Settings that will affect the webbrowser only, and not the whole of IE
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Help {WebBrowser Control: Block Popups}
Who know how to block popups from webbrowser component ?
Edit by 00100b: Removed the first topic from this post since you already had a thread concerning it here.
Detect / Block Messenger Service Popups
You know those annoying messenger service popup ads? What is the best way to block them with a program in VB? Should I use a timer and constantly scan for open windows with the right caption and class name and use API to remove it? Or is there a way to detect it before it even shows?
Thanks!
Block Popups/ And Find Out Window Application?
How do I get my app to block popups? Those popups that appear while browsing the net...?
also how do I find out whether a window belongs to MS Word or Yahoo Messenger or some other app..? Of course, getting the title text is not enough/foolproof - is there any other way?
In VB of course..
WM_PRINT & Java - Unresolved
Hello,
I am writing a client for a online Java game, I want to be able to capture what is happening in the game.
I also need to be able to do this while the window is minimised or out of view, This is why I am using WM_PRINT not BitBlt.
However, It seems that I cannot WM_PRINT the applet, It instead returns a Black Image, I can WM_PRINT on any other object
and it works fine, but not with the Java Applet.
Below is my sample application, It will attempt to copy the device context of the sample applet within the browser to the clipboard.
Run it, click the button and paste it into paint, You will see the image is completly black.
I think that either I am sending the wrong flags to the window, or I am trying to capture the wrong window, or maybe even, java applets
do not accept the WM_PRINT message?
Code:
'********************************
' This form is named Form1, It contains a button (Command1) and a browser control (WebBrowser1)
Option Explicit
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Private Declare Function CreateCompatibleDC Lib "GDI32.dll" (ByVal hdc As Long) As Long
Private Declare Function GetWindowRect Lib "user32.dll" (ByVal hwnd As Long, ByRef lpRect As RectAPI) As Long
Private Declare Function GetDC Lib "user32.dll" (ByVal hwnd As Long) As Long
Private Declare Function CreateCompatibleBitmap Lib "GDI32.dll" (ByVal hdc As Long, ByVal nWidth As Long, ByVal nHeight As Long) As Long
Private Declare Function ReleaseDC Lib "user32.dll" (ByVal hwnd As Long, ByVal hdc As Long) As Long
Private Declare Function SendMessage Lib "user32.dll" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByRef lParam As Any) As Long
Private Declare Function SelectObject Lib "GDI32.dll" (ByVal hdc As Long, ByVal hObject As Long) As Long
Private Declare Function DeleteObject Lib "GDI32.dll" (ByVal hObject As Long) As Long
Private Declare Function OpenClipboard Lib "user32.dll" (ByVal hwnd As Long) As Long
Private Declare Function EmptyClipboard Lib "user32.dll" () As Long
Private Declare Function SetClipboardData Lib "user32.dll" (ByVal wFormat As Long, ByVal hMem As Long) As Long
Private Declare Function CloseClipboard Lib "user32.dll" () As Long
Private Const PRF_ERASEBKGND = &H8&
Private Const PRF_CHECKVISIBLE = &H1&
Private Const PRF_NONCLIENT As Long = &H2
Private Const PRF_CLIENT As Long = &H4
Private Const PRF_CHILDREN As Long = &H10
Private Const PRF_OWNED As Long = &H20
Private Const GWL_WNDPROC As Long = (-4)
Private Const COLOR_INFOBK As Long = 24
Private Const WM_PRINT As Long = &H317
Private Const WM_CLOSE As Long = &H10
Private Const WM_PAINT As Long = &HF
Private Const WM_PRINTCLIENT As Long = &H318
Private Const CF_BITMAP As Long = 2
Private Type RectAPI
Left As Long
Top As Long
Right As Long
Bottom As Long
End Type
Private Sub Command1_Click()
CaptureJava GetJavaHandle(Form1.hwnd)
End Sub
Private Sub Form_Load()
' Navigate to site containing java applet
WebBrowser1.Navigate "http://www.jagex.com/fleas.html"
End Sub
Private Function GetJavaHandle(ByVal hwnd As Long)
' This function will get the handle of the Browser control
' then get the handle of the embedded java object within
hwnd = FindWindowEx(hwnd, 0&, "shell embedding", vbNullString)
hwnd = FindWindowEx(hwnd, 0&, "shell docobject view", vbNullString)
hwnd = FindWindowEx(hwnd, 0&, "internet explorer_server", vbNullString)
hwnd = FindWindowEx(hwnd, 0&, "microsoft vm for java(tm) host window class", vbNullString)
hwnd = FindWindowEx(hwnd, 0&, "msawt_comp_class", vbNullString)
GetJavaHandle = hwnd
End Function
Private Sub CaptureJava(ByVal hwnd As Long)
' This function should print the dc of the handle you give it to
' the clipboard, doesnt seem to work with a java app
Dim RECT As RectAPI, hBmp As Long, hOld As Long, hDCMem As Long, hdc As Long
hDCMem = CreateCompatibleDC(0&)
Call GetWindowRect(hwnd, RECT)
hdc = GetDC(hwnd)
hBmp = CreateCompatibleBitmap(hdc, RECT.Right - RECT.Left, RECT.Bottom - RECT.Top)
Call ReleaseDC(hwnd, hdc)
hOld = SelectObject(hDCMem, hBmp)
Call SendMessage(hwnd, WM_PRINT, hDCMem, ByVal (PRF_CHILDREN Or PRF_CLIENT Or PRF_ERASEBKGND Or PRF_NONCLIENT Or PRF_OWNED))
Call SelectObject(hDCMem, hOld)
Call DeleteObject(hDCMem)
If (OpenClipboard(hwnd)) Then
Call EmptyClipboard
Call SetClipboardData(CF_BITMAP, hBmp)
Call CloseClipboard
End If
End Sub
WebBrowser Popups!
Hello friends
Im using the WebBrowser control in my browser...but one thing that really disturbs me is when a popup appears, and the internet explorer icon is in the title bar!
Is there any way to create my own popup screens?
Cheers
Webbrowser/Popups
In the webbrowser control's newwindow2 event, if I set cancel to true, will it close the window that opens?
Webbrowser Popups Again *omg*
humpf.. i was searching for code that would make the popups open in new windows (create new forms). I know it's something in the NewWindow/NewWindow2 event for the webbrowser control.
tried searching here but the function was disabled
thanks, i need the code
thanks again
and again
WebBrowser & Popups
how do i prevent mybwebbrowser control from being flooded with popups (i don't want to see any of them), has to work when leaving sites also (which has a nasty javascript which opens another window)..
thanks!
Possible To Block Message Hooking? [UNRESOLVED]
In my previous post, http://www.vbcity.com/forums/topic.asp?tid=102449 , I discussed subclassing AOL for automatic ad removal. However, that DLL was not appropriate because it couldn't intercept other thread messages. So, I tried out the HookControl and DLL from http://www.vbforums.com/showthread.php?t=322261 . This seems to work -- somewhat.
When I subclass the AOL MDIClient, no messages are returned.. not even WM_PAINT. However, when I subclass the main AOL window, some messages do come through such as WM_COMMAND.
Is it possible that AOL has figured out a way to block another application from intercepting its window messages? If so, is there a way to get around the block?
* Out of courtesy, please mark your topics as Resolved (click for quick tutorial)
* Posting Guidelines - Format your posts! - My FAQs - Search Forum - FAQs
* A Class module replacement for the FileSystemObject
* An Interesting Read: How To Ask Questions The Smart Way
Edited by - AbbydonKrafts on 6/21/2005 7:28:03 PM
Closing PopUps From WebBrowser
Everyonce in a very blue moon my weather program that I made gets a pop up. It checks the same site everytime and its very rare that I get a pop up but sometimes when it goes to weather.com and then gets the source code I get a pop up. Is there anyway of killing this stupid thing?
Disabling Popups For WebBrowser!
I have a browser on my form and I don't want it to show any popup windows! One of the methods that I've tried before trigger javascript errors because of disabling the popup option!
WebBrowser Control Popups
I've been Googling all day, but to no avail.
I have a webpage I'd like my webbrowser to go to, but it has a popup. I'd like to find the url of the popup, and possibly disable popups entirely. Can anyone just point me in the direction of an article or example that would help me in the slightest way? VB6 is what I'm using btw.
WebBrowser Control And PopUps
Hi everyone, i'm back to my internet browser project at work and i've run into a problem. I'm using VB6. I've got the program working correctly as far as the permissions that the users have.( users don't have access to an address bar, rather a menu of available sites that i can add at runtime.)
The problem i'm having is this:
The purpose of this webbrowser is to keep the employees at my company out of the full internet. meaning, the only sites they're allowed to go to are ones that have no links to any search engines, and no links to any pages with links to pages with search engines. So, in the webbrowser's NewWindow2 method i put cancel = true...that works, and disables all popup windows. The problem with this is that some of the pages that are necessary to the users have popup forms that display information, or accept information to/from the user. To get around this problem, i put in an if/else statement:
Code:
If VBA.Left$(WebBrowser1.LocationURL, 26) = "http://www.requiredwebpage" Then
Cancel = False
ElseIf VBA.Left$(WebBrowser1.LocationURL, 15) = "https://www.ups" Then
Cancel = False
ElseIf VBA.Left$(WebBrowser1.LocationURL, 21) = "http://www.neededpage" Then
Cancel = False
Else
MsgBox "This site has attempted to open a pop-up window." & vbCrLf & "If this is a window that you need to see, please contact your Network Administrator."
Cancel = True
End If
Now, as we all know...solutions cause more problems right? this works, and allows popups on these webpages. However, i'll use ups.com as an example because that's the one that came to my attention first. At UPS.com, you can login if you have a user account with them. this works as it's supposed to, but there's an option to enter a new address into your address book. when the user clicks that, it is supposed to load up an address input form but instead is opening up the login form again and asking for username/password.
What i suspect the problem to be is that there is a cookie, or a username/login bit of information that i need to pass to the new form which is getting lost somewhere. Does anyone know how to fix this? If anyone needs clarification on my problem, please let me know...this is a bit urgent because the users are using this program as their main webbrowser as of two days ago. for now, i'm holding them off with "yeah, i know your browser is broken...i'm working on it!" but i don't know how long that will work.
Thanks!
:EDIT: - I realized i should also point out that the Main form which i created uses the WebBrowser control on that form. However, the popup windows are using Internet Explorer. Is this how it's supposed to work with popups, or is there anything i can do to stop it from using internet explorer?
-Ryan
Edited by - mrsmiley0221 on 1/5/2005 8:48:20 AM
'Redirecting' Popups[Webbrowser Control]
I'm using VB6 & the webbrowser control. The control goes to the website, but the site has a popup that launches the default browser. I don't want to disable the popup.
I'd like to redirect the popup into a webbrowser already on my form, or possibly another form, so I've tried a few things:
Code:
Private Sub WebBrowser1_NewWindow2(ppDisp As Object, Cancel As Boolean)
Set ppDisp = New Form2
ppDisp.WebBrowser1.Silent = True
ppDisp.WebBrowser1.RegisterAsBrowser = True
ppDisp.Visible = True
End Sub
Form2 is just a form with a webbrowser on it. Nothing happens when form2 is shown. Any help or push in the right direction would be great.
Webbrowser Control - Catch Exit Popups
Hello,
In my program I am trying to catch popups from one webbrowser and put them in a different webbrowser, I am using the following code:
Private Sub WebBrowser1_NewWindow2(ppDisp As Object, Cancel As Boolean)
Set ppDisp = WebBrowser2(CurrentPopup).object
This works fine for popups that occur when the page loads, etc. - but it doesn't catch exit popups... Does anyone know of a method that will catch both entry and exit popups?
Webbrowser Control And Javascript Error Popups
I know there is a way to manipulate the WebBrowser Control from VB6 so that you can turn on/off certain functions of IE. I am having a tough time finding a way to disable the popups when a javascript error occurs however. I basicly just want to supress the popups of the error so that no msgbox window pops up on an error.
There are 2 error windows, the small one, and the bigger one - the smaller one can be disabled through IE by clicking "Disable script debugging" - but then the bigger error window popups on an JS error, although it doesn't sound that annoying Windows Beep.
Anyone got any ideas or a cool trick to try to attach to the WB control and supress/eliminate the JS error popups?
How Do U Block Or Disable Java Script Errors In Microsoft Internet Control
How do u Block or Disable Java Script Errors in Microsoft Internet Control aka WebBrowser1
It seems like some sites give Java Script Errors when I use the Webbrowser1 object and the only want to stop the message from being displayed is to disable Java Script in Internet Explorer for entire computer
I want to block or ignore that java script error or only disable Java Script in the current Webbrowser1 in my program
Webbrowser Control [UNRESOLVED]
I have been looking for an answer to this for a long time, but I still have yet to come up with any solution.
My application has a webbrowser control in it. This control is used to get information from our website to give to the end user. The end user never actually sees the data in the webbrowser control because it is on a hidden form. For example, this program needs to be activated on our server for them to use it. When they put the cd key in, it sends it as a parameter on a url to our website which validates it and returns a good or bad response. the response is read in and if good they continue, if not it haults the application.
so my problem is that people with firewalls seem to be having trouble getting this to work. I would think since this is the webbrowser control, that if they can get out to the internet with internet explorer, then my app should be able to do the same, but for whatever reason, this is not the case. I tried installing zonealarm to replicate the problem, and when i get the popup authorizing access, it tells me the destination IP is 127.0.0.1 with a different port number each time. Why it is using this IP is odd to me, and why its not working is a bigger mystery.
Is there a better method I can use to navigate to webpages? Why wont this work in my app?
The WebBrowser Control In VB***UNRESOLVED***
Hi
I have used a WebBrowser control in a VB form, now my problem is, I want to Disable the WebBrowser to prevent any changes to be made on documents during run-time.
The property (Enable) is not available, how can I (WebBrowser1.Enable = False). I do not want any changes to be made on the Documents viewed via the WebBrowser.
How can I do this??
Thanks in Advance.
Wizards
SA
Webbrowser Control *unresolved*
I am using the webbrowser control in my application, but I am trying to figure out what local ports it uses when accessing the net cause some users with firewalls are having problems.
The one user I am troubleshooting with right now says on their firewall(which is managed by their company not the user) they said port 80 is allowed, and they can use internet explorer without a problem, isn't the browsercontrol just an interface of IE?
WebBrowser Java Error Box
How do i stop the java error boxes from popping up in the webbrowser control?
I know u can disable the debug boxes through internet options in IE but the error boxes still come up.
Thanks
Need Help On Java Applet In Webbrowser Please!
Hi, I am having trouble with the java applet. I have my webbrowser loaded the webpage with java applet. and the java applet has a textbox in it. Is there a way to detect the handle of it? or set the value of that textbox? I tried spy++ but it didn't detect the handle of the textbox only the java window.Please help if anyone can . Thanks in advance.
How To Block Popup In WebBrowser
I have created a form. There is a WebBrowser in the form. I have set the WebBrowser to visit a site. However, whenever it visit that site, a new popup window always comes out. Is there anyway to block the popup????
Thx!
Resizing A Webbrowser In Java Script!
You know how you can resize a Internet Explorer using java script! Well, I made my own browser and I want it that when they resize the browser control, I want it to reize my form!
ActiveX And Java
Is there anybody knows that ActiveX components, such as .dll can be used in Java or Java Applet? If yest, how? Thanks.
[UNRESOLVED] Can Control Any Html Elements With The WebBrowser, Except...
My application is filling a web page automatically with the WebBrowser control (textboxes, checkboxes and so on).
Code:
<td valign="top"> <font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#000000">
<input type="text" name="Date_Birth" value="">
</font></td>
I can easily fill this date of birth textbox with the following line of code:
Code:
WebControl.Document.Forms(0).Date_Birth.Value = strMyDOB
I can also usually submit a form by code with forms(0).submit, but now it doesn't work. The "SUBMIT" button is an image which I'd like to click, or use to properly submit the form...
Code:
<td class="whiteSm" colspan="2"><br>
<input type="image" src="/images/submit.jpg" width="85" height="25" border="0"></td>
(I think the class"whiteSm" is somehow interferring here, and since I'm not an html guru, I need you people to help me out)
Any idea would be greatly appreciated! Thanks!
Running Webbrowser With Embedded Java Applet
Is it possible to use the WebBrowser control to load an HTML that has a Java Applet and using WebBrowser features interface and call some functions in the Applet?
I know that I can use a Java Script or a VB Script in the same HTML document that can interface with functions in the Applet but I want to be able to do the same without the scripts.
Are there WebBrowser methods that can do this?
WebBrowser Won't Load Html With Java Applet
I made a Java Applet which runs in the browser however everytime I launch the browser for that html document a warning message pops up at the top of the view window which says:
To help protect your security, Internet Explorer has restricted this file from showing active content that could access your computer.
How or what can I do to not have IE show this message? I have to click on it and then click on Allow Blocked Contents everytime. I want to disable this all the time without having to do it each time.
This causes the html page with the Java Applet to not show up in my VB program using the WebBrowser control.
WebBrowser Control Duplicate Java Script ??
With VB I'm reading the source code of a web page from BrowserDocument.documentElement.outerHTML.
When this is put back into the browser some source code or java scripts can be duplicated. This is hard for me to understand why. My objective is to read the web page, modify and send it back. The data being posted has too many hidden inputs tags (100's) holding information to put into on string and send with another type of control.
Ever heard of this? Any ideas? Any hep or direction is greatly appreciated.
Thanks.
UNRESOLVED - ActiveX Problem.
Hey there people
Im trying to get my activeX (ocx) to work for my chat programe, ive tryed compiling it so on signed it and packaged it as well. But when users go to download the softwear it gives this error;
-------------------
This page provides potentially unsafe information to an ActiveX control. Your current security settings prohibit running controls in this manner. As a result, this page may not display correctly.
-------------------
Any help would be appreciated.
Thanks.
Dan|el
ActiveX Dll -> Functions [UNRESOLVED]
Hi vbProgrammors, I have Visual Basic 6.0, and I tryed to make a DLL in ActiveX to import in another framework...
There doesn't seem to be any examples on how to do it in the MSDN help, I've searched ways to do it unsuccesfully... so my request is this:
I request a sample program in VB6, the ActiveX Dll with a simple function: fncAddition(varValue1 as integer, varValue2 as integer) as integer ... of course this is simple, and it's just to test the Dll
Also... optionaly, if you could give me another sample program to test the function... I don't need the code, but It would be useful to see if the function works before using it...!
Thank you programmors, I hope this problem doesn't give you to much brain cancer like it did to me
...
Yours, Lord Saiko Ruku, The Great Paladin Of Visual Basic
Java Vs. ActiveX Vs. Flash
Okay, my desktop quiz creation software is pretty tricked out, multiple-choice, flash card, fill-in-the-blank, drag and drop, picture links, timers, skins . . . (not to run a promo by you, but the features incorporated so far do factor in to this question . . . )
It's finally time to give the users the ability to save their quiz to a format that will work as a web page and my first instinct is to do it in Java.
I've seen Hot Potatoes, I know it's written in Java and it has all the features that I've made for the desktop version (it's the only made-for-browsers quiz creator that I've seen that allows drag-and-drop questions.)
But before I embark on this mission (and I'm going to be learning Java 2 from scratch) I just wanted to check in with my friends at VB world and see if there's any good reasons or browser compatibility issues that might make me want to consider going the ActiveX route, or maybe the Flash route, or geez, I don't know, there's probably a way to do it in DHTML or XML if I knew what the heck those acronyms even implied.
Any one want to give me a reason why I might consider something other than Java 2?
How To Block The Right Mouse Click On Webbrowser Control
How to block the right mouse click on webbrowser control?
I don't want the user to be able to click F5(Refresh) or BackSpace(Back)...How can I go about doing that?
Also, I would like the user not to be able to right mouse click on the WebBrowser control.
I don't need it using API's please! I just need away around it!
Thank you all Any help will definately do!
Hard Webbrowser / Crystal Question [Still Unresolved - Not Even A Hint??]
ok I am trying to automate the download/export/save (whatever) of online crystal reports
VB Code:
Private Sub WB1_DocumentComplete(ByVal pDisp As Object, URL As Variant)If (pDisp Is WB1.Application) Then Debug.Print URL If URL = "http://www.URL.com/secure/ConfirmLogon2.asp" Then Dim HTML As HTMLDocument Dim AREF As HTMLAnchorElement Dim CRVW As CRViewer Dim CRDW As CrystalReportExport Set HTML = WB1.Document Dim WebBroker Dim webSource0 For Each AREF In HTML.All If ReturnHref(AREF) Then Set WebBroker = CreateObject("WebReportBroker.WebReportBroker") If Err.Number <> 0 Then Else Set webSource0 = CreateObject("WebReportSource.WebReportSource") webSource0.ReportSource = WebBroker webSource0.URL = "https://www.URL.com/0123456/webReports/SecretCode/2005,Jun-Report.rpt" webSource0.PromptOnRefresh = True Set CRVW = New CRViewer Set CRDW = New CrystalReportExport CRVW.ReportSource = webSource0 CRVW.ViewReport End If End If Next End IfEnd IfEnd Sub
trying to pick apart some asp pages, the above runs with no errors.. but nothing happens. Has anyone ever use the CRViewer.dll? I need to get the report then save... Help!! what is WebReportBroker? etc
Thanks!
::UNRESOLVED & URGENT:: Manipulating Print Options In WebBrowser
Does anyone know how to manipulate the printing options when printing a HTML page via the WebBrowser controls. I don't want to print the filename in the bottom left corner, as well as the date in the bottom right corner etc.
Thanks.
Edited by - dupherman on 11/30/2005 1:20:59 AM
Loading Java/Flash Pages Locally In WebBrowser
Yoo.......I am in the boonies for the summer and cobbled a app together to retrieve a dozen news sites etc. at 1am to get a good connection and save long distance charges....
A few I collect like ESPN MLB stats don't appear right because they use JS to write menus and chit......Question: what is behind the browser not executing JS locally...errr....why I have to nav to the server? Is there anything one can do to force the JS locally to fire and do its thing in the webbrowser?
ActiveX Controls, VBScript & Java
Greetings.
From the MSDN website:
Quote:
On an HTML page, your component's functionality is accessed through scripting, such as when events are handled through Visual Basic Scripting Edition (VBScript). For ActiveX controls, scripting is the only way to fully utilize the control's features in a browser.
My question: Can you fully utilize a VB ActiveX Control's features with Javascript or only with VBScript? If the answer to the first question is "only with VBScript", will a webpage with a VB ActiveX control (and VBScript) be fully functional if displayed in Netscape Communicator?
Yeah, I know, this should be in Internet Programming. I'll post it there too.
Thanks everyone.
Problem With Java Web Start ActiveX
Hi there, was wondering if anyone had experienced similar problems with Java Web Start ActiveX. I have inherited the following client side code to determine for Windows and Netscape if Java Web Start has been installed:
<script language="Javascript">
var javawsInstalled = 0;
isIE = "false";
if(navigator.mimeTypes && navigator.mimeTypes.length) {
x = navigator.mimeTypes['application/x-java-jnlp-file'];
if(x) {
javawsInstalled = 1;
}
}
else {
isIE = "true";
}
</script>
<script language="VBScript">
on error resume next
If isIE = "true" Then
If Not(IsObject(CreateObject("JavaWebStart.IsInstalled"))) Then
javawsInstalled = 0
Else
javawsInstalled = 1
End If
End If
</script>
On most occasions this works fine. But for one NT box where the administrator installed JWS, any other user firing up the browser appears not to have JWS installed. This looks like some sort of registry or permission problem. Has anyone else seen this as well?
Thanks for any advice, Neil
Disable-Block Keyboard Input To The WebBrowser Control
What would be the best way to do this ^ (Question in the title)?
The biggest problem is that the WebBrowser Control has no "Key" Events.
Now the document within the WebBrowser does. So I could block input to the html document, but if the WebBrowser control has focus and I type CTRL+N then a new browser window opens. Or if I type CTRL+P then the Print dialog pops up....and so on...
That's no good.....I need to stop all keyboard input to the WebBrowser Control.
Hit me with your best shot.....
WebBrowser In Form, Open Popups In New Form
I have a form with the "WebBrowser" in it. When a person clicks a link or a popup appears, instead of opening in an IE window, I want it to launch another copy of my form with the WebBrowser in it and load it there. Anyone know how to do that?
Runtime Error '91' Object Or With Block Variable Not Set For WebBrowser Control
Hi Scott,
I want to get the login & Password text automatically/programatically entered when i browse the website http://www.rediffmail.com. For this I am writing the code given below
Private Sub Form_Load()
WebBrowser1.Navigate WebBrowser1.Navigate
"http://www.rediffmail.com"
End Sub
Private Sub Command1_Click()
WebBrowser1.Document.Forms("0").elements("login").V alue = "NAME"
WebBrowser1.Document.Forms("1").elements("passwd"). Value =
"password"
End Sub
First line of the command1_click works but for Second line I am getting the runtime error '91' as mentioned above.
Please give me the solution for this.
Also, this is for the URL www.rediffmail.com, the same runtime error i am getting if i am using the URL starting with "https://www. so on".
Please let us know the feedback.
Subhash
|