JohnDoeSr
asked on
Looking for some VB 6 code to delete cookies in IE
I'm looking for a sub or some code that'll delete cookies in IE. I'm using OLE to control an instance of IE and would like to delete cookies at the push of a button or maybe right at the sub form load.
Thanks
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Because that code shouldn't be pasted into the IDE, you need to create those files using notepad and save them as the filename.
Make sense?
Make sense?
ASKER
Ah, I've never done that before. So the IDE paste should begin with "Option Explicit" ?
ASKER
Begin VB.Form F_ClearCache
Begin VB.TextBox Total
Begin VB.CheckBox C_Hist
I can see its trying to set the properties of these objects, but why won't VB accept those lines? I've created the objects in case that was the problem, but nada. The error I'm getting when hitting run is "Compile Error: Expected end of statement" and the f_ClearCache in the first line lights up (Begin VB.Form F_ClearCache)