Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 312
  • Last Modified:

Programming challenge (Modify Internet Explorer)

I have been having trouble with a programming challenge given to me.

The exact text lies below:



Create a program the deletes your internet cache every time the refresh button is clicked. This challenge has the following restrictions:

Must be for Interent Explorer 4.0 and higher.
Must be from VB .NET



I'm looking for something that will install or replace the Refresh button info and then delete the internet cache but do not know which folder either is in.

Only 125 points, sorry, I just started.
0
codemann8
Asked:
codemann8
1 Solution
 
Ryan ChongCommented:
I can 'hopefully' delete the internet page cache by using this 2 way:

1st: In your IE browser, always try to press Ctrl+F5 instead of F5 to refresh the pages, that's force the IE browser to get a New page from Internet not from cache.

2nd: Do it programmingly, but Not in real IE Browser, by using DeleteUrlCacheEntry API:

Example:

Declare Function DeleteUrlCacheEntry Lib "wininet.dll" Alias "DeleteUrlCacheEntryA" (ByVal lpszUrlName As String) As Integer

Use it like:
Dim myURL As String = "http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/VB.NET/Q_20963481.html"
DeleteUrlCacheEntry myURL
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now