Filling in web page through code...

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I've got an app in VB6 that uses a webbrowser control to go to a web
site, enter text in a box, click the Submit button and fetch the
results.

Apparently the code won't translate to VB2005. The program stops on
this line:

WebBrowser1.Document.DomDocument.All("address1").Value = MyString

with the error "Object reference not set to an instance of an object"
and the Upgrade Warnings above the line of code show:

Couldn't resolve default property of object WebBrowser1.Document.All.

What is the correct syntax for this, or is there a better way of doing
this?
.



Relevant Pages

  • Re: Validating "Orders" form
    ... IMO it would be a PITA to write an app in VB6 because of this 'limitation' ... I have a similar app and simply check for Order details when I close the Orders form. ... You should, however, be able to do a little more validation ...
    (comp.databases.ms-access)
  • RE: GetWindowsDirectory retrieves wrong directory under Terminal S
    ... We use the same api in VB6, I created a simple VB6 DLL and referenced it ... from my C# test app and also a VB6 test app. ... applications and needs to read the legacy application's INI file from the ... mapped to a Windows folder within their profile. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: General question about upgrade path
    ... While the app does just about everything I want it to, ... > wasn't worth the hassle of upgrading. ... Do I need to move to VB6? ... There is a close analogy between the Coke snafu 20 years ago and MS's ...
    (microsoft.public.vb.general.discussion)
  • Re: Advice Needed...
    ... items in a listbox). ... What about access controls is better? ... looking) is that they can handle multi-column data, where a VB6 listbox ... The only real issue is the problems when an app shuts down unexpectedly. ...
    (microsoft.public.vb.general.discussion)
  • Re: Hows dot.net doing nowadays?
    ... There are things that VB6 will forever be better suited for than a .NET app. ... why is it that 8 of 10 .Notters will quote something out of context so they can twist its meaning? ... If some one is moving to .NET, or if the reason some one changing ANY platform is simply because it's the fashionable thing to do for the week, then it's a bad decision. ...
    (microsoft.public.vb.general.discussion)