473,379 Members | 1,253 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,379 software developers and data experts.

VS2005 WebBrowser Control

Hi guys,

Noticed something strange and wondered if anyone had come across this. When
using the WebBrowser control, if I in any way access the
webBrowser1.Document object, I can no long type anything into any form
elements on the page. I can still navigate using the Tab key and hit buttons
with the Spacebar, but any other key seems to have become disabled.

Anyone noticed this before?

Thanks in advance

Adam
Nov 16 '05 #1
1 2206
Just resolved this (yeah, I know it was only a couple of minutes!)

You have to call Dispose() on any references to element object within
WebBrowser.Document.

I was doing

foreach(HtmlElement elem in webBrowser1.Document.All)
{
listBox1.Items.Add(elem.TagName);
}

and it was screwing up.

But with

foreach(HtmlElement elem in webBrowser1.Document.All)
{
listBox1.Items.Add(elem.TagName);
elem.Dispose();
}

... it's fine.

Adam

"Adam Barker" <usenet@q-stateNO_SPM.co.uk> wrote in message
news:%2******************@TK2MSFTNGP15.phx.gbl...
Hi guys,

Noticed something strange and wondered if anyone had come across this. When using the WebBrowser control, if I in any way access the
webBrowser1.Document object, I can no long type anything into any form
elements on the page. I can still navigate using the Tab key and hit buttons with the Spacebar, but any other key seems to have become disabled.

Anyone noticed this before?

Thanks in advance

Adam

Nov 16 '05 #2

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

Similar topics

5
by: Noozer | last post by:
I've got a WebBrowser control (AxBrowse - VCMAXB.DLL) and I'm having a few difficulties with it. Just looking for a few pointers, not whole solutions here. I've tried looking at the MSDN help files...
9
by: ASP .NET Newbie | last post by:
How can I run a WebBrowser control using ASP.NET/VB.NET? I know I can use the WebClient to get the page data, but I need to be able to use the WebBrowser (AxWebBrowser)? Thanks, Chad
0
by: Jim Hubbard | last post by:
How would I implement the IDispatch interface to handle the following in VB.Net <BEGIN> Controlling Download and Execution The WebBrowser Control gives you control over what it downloads,...
1
by: Mike Evans | last post by:
In a windows application we have a webbrowser control and we want to change the selected item of a select or combobox inside the webbrowser control. We know how to change the value of a textbox...
6
by: ESmith | last post by:
I'm looking to user a web browser component in VS2005. I like the functionality in the AXWebBrowser component (from ActiveX controls page) that allows me to do this: mshtml.HTMLDocument doc; ...
12
by: Alex Clark | last post by:
Greetings, (.NET 2.0, WinXP Pro/Server 2003, IE6 with latest service packs). I've decided to take advantage of the layout characteristics of HTML documents to simplify my printing tasks, but...
0
by: ESmith | last post by:
In the previous WebBrowser component, I could get events (such as, WindowClosing) and act upon those event. I've tried getting the underlying ActiveX control and wiring up an event, but it...
8
by: Prosperz | last post by:
Hi, I would like to make thumbnails of web page by capture content of a WebBrowser. By example, capture http://www.google.com. I used WebBrowser control with Framework 2.0. I try this : ...
3
by: Tim Dixon | last post by:
Hi, Can someone tell me how to get a flash file to play in Visual Basic .net? (VS2005) Tried adding a com component to the toolbox (as it worked in VS2003), but this produces an error in 2005...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
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...

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.