Search:
Type: Posts; User: TheVader
Search:
Search took 0.19 seconds.
-
Since a week or two my computer seems to freeze randomly, especially when I've just turned it on. Windows' interfaces are the first to stop responding, then after a few seconds the mouse freezes....
-
Hi folks,
A client who is using an application of mine is having trouble inserting special characters in the documents she makes with it. Any foreign characters she tries to insert (such as é or...
-
Hi nasreen,
I think the best way to reenable a JavaScript function is using the attachEvent method (MSDN). In your case, that would be something like this:
...
-
Some files necessary for my signature.
-
Hi there,
Lately a new ad has been added to VBForums, one that contains a large screwdriver and takes up a lot of space. I don't know if it is featured on English systems (because it is a Dutch...
-
Try naming it after a typical blues song, either the title or an excerpt from the lyrics. Something like 'Blue Highway', 'Rocks & Gravel', or 'Blues Run the Game'. :)
-
I've been using the Chilkat FTP Component; works like a charm. :) In respond to the previous post, I advice against using the Inet control; built an application with it once and brought myself a lot...
-
Hi The_Engine,
The code you show is making use of the HTML Document Object Model (see article in my sig). You can focus on specific elements by looking at attributes in the source of a webpage. If...
-
I think the problem is caused because some frames contain webpages from different domains. The only solution I can think of is to load the frame you want to work with by itself in the Web Browser...
-
I think that's the problem you're encountering; according to this page. :)
-
That's odd; it should work. :confused: Try this on VBForums.com index page. The msgbox should pop up if the first VBWire link has the focus (is the active element).
If web.Document.activeElement =...
-
Well, I think this method is quicker to find out which element has the focus. :)
If WebBrowser1.Document.All.FIELDNAME = WebBrowser1.Document.ActiveElement Then
-
Yes, when reading HTML the HTMLDocument object converts it to MSHTML, which is the way IE works with it. The addition of TBODY is caused by this.
I wouldn't now that, never experienced such...
-
Arpan, try using the DOM to extract the title :):
wWeb.Document.title
or, if that doesn't work:
wWeb.Document.getElementsByTagName("title").item(0)
-
You can also use this. :)
WebBrowser1.Document.getElementById("txtName").value
-
You can use the CommandStateChange event of the Web Browser control to enable or disable the buttons when they can (not) be used. Like this:
Private Sub webPage_CommandStateChange(ByVal Command As...
-
You can try using my LabelEdit SubItems code; it uses a textbox to let users edit individual cells. :)
-
'To open a page in a Web Browser control:
WebBrowser1.Document.Navigate2 "http://www.url.com"
'Wait for the page to load
Do While WebBrowser1.Document.readyState <> "complete"
DoEvents
Loop...
-
You could parse the XML file yourself with MSXML and write it to the INI file in the format you want. :)
-
Looks like it... I couldn't find a property 'path' or 'root' or so. :sick:
-
Try this. :)
Dim x As New MSXML2.DOMDocument
Dim n As IXMLDOMElement
Dim s As String
x.Load "c:\file.xml"
MsgBox x.xml
Set n = x.selectSingleNode("//bookstore//book//price")
-
You could parse the code of all images and check if they refer to servers... do the URL's in the document contain relative adresses as well? :)
-
Why don't you just parse the URL in the BeforeNavigate2 event? If you just want to allow local files, you can just block all URL's starting with "http://"; or even all URL's containing '/' instead of...
-
I don't know if you really want to add that link to the browser's history or if you just want to imitate it by coloring it? The second option would be something like this: :)
Dim i As Integer
For...
-
Check out the last post in this thread. :)
-
The best way to go is to create a plugin for IE, although that is quite difficult to do. Here is an example of such a toolband, try it out.
Then, when your app is displayed inside the IE toolbar,...
-
Go to Project > References and add 'Microsoft HTML Object Library'. :)
-
I wouldn't use the WebCustomizer if I were you. It caused me some problems with other functions of the browser control.
Try this. Add "Microsoft HTML Object Library" as a reference. :)
'Global...
-
Did you try What The Font and similar font search engines? :)
-
Your code looks correct, for the largest part. You can remove the 'If HTMLTag.tagname = "select"' condition since that selection is already made by the Select Case statement.
I didn't run your...
-
Hi Kati,
I'm glad to tell you I've found the error in your code. Actually your code was correct, but you called it from the wrong document. Let me explain; the whole page consists of a frameset...
-
So you want to call that function from within VB? Use the execScript function; call it from WebBrowser1.Document. I don't know by heart how to pass the parameters but I remember doing it before, so...
-
This is probably the easiest way to go. :)
Add 'Microsoft HTML Object Library' as a reference.
Option Explicit
Dim WithEvents objDocument As HTMLDocument
Private Sub Form_Load()
...
-
Well, apparently the NavigateComplete2 event is never triggered. The browser control should do that when the page has been loaded. It seems the page never finished loading. Try your code with another...
-
Using a module-declared boolean; set it to True before navigating to the page and set it to False in the NavigateComplete event. Then use a loop to check for the value.
Private Sub YourSub()...
-
Looks like that should work... are you sure the page has been loaded completely? The readystate property doesn't always work that well. Do you get an error or doesn't anything happen?
You can try...
-
If Not wb(1) Is Nothing Then
'Exists
End If:)
-
I remember there being a petition on MSDN several months ago, asking for a new set of 32-bit icons. Many signed it and Microsoft said it would be included with Visual Studio 2005. Perhaps it's...
-
Well, the example posted by Microsoft doesn't do much, except for some in-site element parsing. How have you managed to access the other frames? Do you know how to use the frames collection?
...
-
Try this: :)
Private Sub WebBrowser1_NewWindow2(ppDisp As Object, Cancel As Boolean)
Dim frmBrowser As Form1
Set frmBrowser = New Form1
Set ppDisp = frmBrowser.WebBrowser1.Object...
|
Click Here to Expand Forum to Full Width
|