Solved

Do you have Web browser control

Posted on 1998-10-14
3
147 Views
Last Modified: 2010-04-30
I'm looking for a web browser control that has something like an HTML Source property. So that I could assign "<HTML><Hello</HTML>" to that property, etc. MS Internet Controls don't have that. Thanks in advance
LK
0
Comment
Question by:lbk
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
Answers2000 earned 50 total points
ID: 1439961
1. With MS Internet control you can point it to a file by using the navigate method with a path on your local HD.  Write the file out as a text file from VB first.  You can easily wrap this up in a function to make it look to rest of program almost as if assigning it.

2. Your HTML is invalid, try
<HTML>
<HEAD>
<TITLE>Hello Title</TITLE>
</HEAD>
<BODY>
Hello
</BODY>

[use CR/LF sequences to separate lines if you want this is CHR$(13)+CHR$(10) -  they have no effect on layout


2. If you don't like IE, try the webster control
http://www.homepagesw.com/webster_overview.htm

There's a full list of methods at
http://www.homepagesw.com/websterhelp/default.html#TopOfPage

AFAIK this also can navigate to a local file on your HD.  I don't think it can do memory strings.



Probably the reason for lack of memory strings for content in #1 or #2 is the linking, frames, image tags etc. in which HTML requires a file/URL reference


</HTML>
0
 
LVL 1

Author Comment

by:lbk
ID: 1439962
and thanks. Seems reasonable
0
 
LVL 8

Expert Comment

by:Answers2000
ID: 1439963
Closing tag on HTML file got misplaced, should have read

<HTML>
     <HEAD>
     <TITLE>Hello Title</TITLE>
     </HEAD>
     <BODY>
     Hello
     </BODY>
</HTML>
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now