Question

VB6 - Delete history in browser?

Asked by: kiphughes

how do i delete certain portions of I.E. history? i used VB6 to create a browser and want to delete everything visited by it when it exits. i know that it shares the same history as regular I.E. and i don't want to delete its history as well. can the GoBack function somehow be used with a delete routine?

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2002-09-14 at 12:27:38ID20357814
Tags

vb6

,

history

,

browser

Topic

Visual Basic Programming

Participating Experts
8
Points
0
Comments
30

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. History and Cache
    Built a browser with vb6. need the code so someone can click and clear their internet history and cache, somewhat like IE. Thank you
  2. CWebBrowser2::GoBack()  alert message box when …
    Hello, I am using the CWebBrowser2 Active X control in a Dialog based MFC application. I want to implement back and forward buttons properly. What I am doing: Given: CWebBrowser2 * pCWebBrowser2MyBrowser; ... pCWebBrowser2MyBrowser= new CWebBrowser2(); pCWebBrowse...
  3. VB6: How to programmatically (via OLE) clear internet …
    I have a need to periodically clear the Internet Explorer "visited links" for an entire site so that they do not appear already "followed". The easiest way I thought of to do this was to clear the IE history (no issue with overriding user prefs in this app...
  4. Read IE History Files
    Hi Buddy, Is there any class or something from where I can read My computer's Internet Explorer History Files using Vb.Net ? Please give me a refernce or a piece of code. Thanks

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: hongjunPosted on 2002-09-14 at 13:04:30ID: 7280822

This example may be good. It has its own list of history.
http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=9557&lngWId=1

hongjun

 

by: kiphughesPosted on 2002-09-14 at 13:42:24ID: 7280848

i also noticed something about the browser that VB6 created: i cannot open files from FTP sites (i.e. play an movie file that is on an FTP server.) any ideas on this?

 

by: kiphughesPosted on 2002-09-14 at 13:49:35ID: 7280852

i observed the behavior a little more. when in an FTP site and u try accessing a folder, it opens up in a new window. this time it's in the real I.E. browser. therefore, it is then possible to open up files such as MP3s, images, etc. if the file is still in the browser that i created w VB6, i cannot open these files.

how do i prevent my browser from opening other windows, and how do i get it to open files on an FTP server?

 

by: kiphughesPosted on 2002-09-14 at 14:21:23ID: 7280864

hongjun,

i took a look at your link. i don't think that is what i'm trying to do. i actually want to go into IE history files and delete the ones my browser went into. any more suggestions?

 

by: kiphughesPosted on 2002-09-14 at 14:39:40ID: 7280875

hongjun, the browser sample from the link you provided also makes entries in IE's history files. i don't necessarily need to delete the history files my browser creates; i can settle with preventing it from making entries in the first place, if it's possible.

 

by: kiphughesPosted on 2002-09-17 at 08:43:59ID: 7285900

Richie_Simonetti,

I'm not sure if the above code works in Windows XP. I can get a list of IE's cache, but cannot not delete them for some reason. I am running on Windows XP and can't get it the delete functions to work.

Does anyone know how I can figure out where IE is saving its history? In Window Me, and previous versions of Windows, I believe it was saved in C:\Windows\History. This is not the case in Windows XP. I think there might be a registry setting that directs IE where to store its history. Does anyone know of a VB function that might extract that directory or something?

Looking at hongjun's example, the browser with saves its own history in a text file but still appears in IE's history, perhaps I can do a compare with the text file history and actual IE history and just delete the matches. This way, I would have only deleted the sites that my browser visited, and not everything in IE. The only problem is, how do I know where IE is saving its history files? I want my program to work on all versions of Windows.

 

by: kiphughesPosted on 2002-09-19 at 01:43:35ID: 7290710

Richie_Simonetti,

the code u gave me does not delete the list that comes from IE history, nor does it delete cookies. it does lists them, though.

the program only deletes cache, not the history list. i'm trying to delete the history list. any other suggestions?

thanks.

 

by: Richie_SimonettiPosted on 2002-09-19 at 06:28:20ID: 7291252

Thsi url shows how to found where history is located. I am not sure if it would work with XP but you could do a try (i haven't XP, sorry)
http://www.mvps.org/vbnet/index.html?http://www.mvps.org/vbnet/search/main/index.html

When you found it, i think it could be easily empty with some loop and Kill function.
Good luck

 

by: kiphughesPosted on 2002-09-19 at 12:21:43ID: 7292357

Please take a look at your link. It looks like you did a search, and gave me the link to the page that showed the search results. Can you give me the link to the exact article?

 

by: mcorrea1976Posted on 2002-09-19 at 16:19:16ID: 7293049

See the following to get the history folder:
http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20360031.html

No idea how to clean invidivual urls in the history list =(
The code of Richie deletes files in the cache but doesn't delete them from the list. Anyway nice code, i'll be using it =)

Mike

 

by: kiphughesPosted on 2002-09-19 at 18:36:55ID: 7293310

mcorrea1976,

the code richie put provides the cache, cookies, and history list. however, i will still look at ur link.

 

by: kiphughesPosted on 2002-09-19 at 18:37:53ID: 7293313

wait a minute, that link was to another one of my questions.

 

by: Richie_SimonettiPosted on 2002-09-20 at 07:06:52ID: 7294389

 

by: kiphughesPosted on 2002-10-06 at 02:36:40ID: 7316715

Richie,

That doesn't clean individual links. C++ can do it: http://msdn.microsoft.com/library/default.asp?url=/workshop/networking/urlhist/iurlhistorystg/deleteurl.asp. I wanted an VB implementation -- or a way to incorporate that into VB.

 

by: Computer101Posted on 2002-10-25 at 04:09:54ID: 7368921

 

by: MindphaserPosted on 2002-11-04 at 12:40:38ID: 7407510

kiphughes asked to have this question deleted, because he didn't get a satisfying answer.
I will wait for expert input in this matter for 3 days. After that I will close the question.

** Mindphaser - Community Support Moderator **

 

by: bruintjePosted on 2002-11-04 at 12:51:56ID: 7407552

PAQ and refund?

 

by: bruintjePosted on 2002-11-04 at 13:02:43ID: 7407603

better yet now i read this, Richie gave the two pieces to glue something together thought it would take some work but that's what we're paid for :)

get the path to the folder
http://www.mvps.org/vbnet/code/browse/shpathidlist.htm

running through the folder could be done this way
http://www.mvps.org/vbnet/code/internet/deleteurlcache.htm
http://www.mvps.org/vbnet/index.html?code/internet/findfirstcacheentry.htm

or just a simple dir function

kiphughes, what did you already try to build here yourself

 

by: kiphughesPosted on 2002-11-04 at 13:40:13ID: 7407729

i'm trying to delete specific URLs from IE's history -- not cache. i've gone to the links about, but they do not solve my problem. the closest solution i could find is referenced at  http://msdn.microsoft.com/library/default.asp?url=/workshop/networking/urlhist/iurlhistorystg/deleteurl.asp -- but i am looking for a VB solution.

 

by: Richie_SimonettiPosted on 2002-11-04 at 14:09:19ID: 7407843

There is a type library that implements that interface:

http://www.domaindlx.com/e_morcillo/scripts/type/default.asp

 

by: Richie_SimonettiPosted on 2002-11-04 at 14:13:46ID: 7407859

Also related:
http://www.mvps.org/btmtz/_misc/
(Last link of that page)

 

by: bookworm0109Posted on 2003-01-17 at 10:21:47ID: 7749119

Did you ever solve this question on your own?  If not, here is a link that solves the problem for how to delete ALL history items in Visual Basic (which is the problem I needed solved for myself).

http://www.codeguru.com/mfc/comments/45982.shtml

I would not have a clue as to how to modify it to meet your specific needs.

 

by: kiphughesPosted on 2003-01-17 at 15:19:51ID: 7750762

No, I have not. Deleting ALL is easy. I only want to delete certain portions of IE's history. It can be done in C++, but I am looking for a VB solution.

 

by: DanRollinsPosted on 2003-03-29 at 22:40:16ID: 8233048

Hi kiphughes,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Refund points and save as a 0-pt PAQ.
    ** I agree, there is no satisfactory answer here.

kiphughes, Please DO NOT accept this comment as an answer.
EXPERTS: Post a comment if you are certain that an expert deserves credit.  Explain why.
==========
DanRollins -- EE database cleanup volunteer

 

by: kiphughesPosted on 2003-03-29 at 23:29:49ID: 8233145

I haven't forgotten this question; I was hoping someone else would post comments to it and resolve my problem. I supposed it's been too long now, though. I didn't get the answer I was hoping for. Please refund points and save as 0-pt PAQ.

 

by: Computer101Posted on 2003-04-05 at 08:49:22ID: 8275470

Points refunded and placed in PAQ

Computer101
E-E Admin

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...