DownloadFile – Download a file using standard IE dialog
Private Declare Function DoFileDownload Lib “shdocvw.dll” (ByVal lpszFile As _ String) As Long’ download a file from Internet and open the IE dialogs that allow the user’ to choose where
Private Declare Function DoFileDownload Lib “shdocvw.dll” (ByVal lpszFile As _ String) As Long’ download a file from Internet and open the IE dialogs that allow the user’ to choose where
‘ Determine whether the IE Close menu item is enabled’ Note: requires the GetRegistryValue routine, you can find it in the CodeBank’ Example:’ MsgBox “Close is enabled: ” & GetIECloseEnabledPublic
‘ Set whether the IE Close menu item is enabled’ Note: requires the SetRegistryValue, CheckRegistryKey and CreateRegistryKey ‘ routines, you can find them in the CodeBank’ Example:’ SetIECloseEnabled FalsePublic Sub
Creating a VB routine that copies a whole directory tree can be a time-consuming job, but fortunately you don’t have to do it. In fact, you can quickly create an
If you want to stop a user from accessing your website, you can do it by using some relatively simple code. First, you must know the IP address of the
To make this script work, browsers should be javascript enabled.1) To Make TextBox Readonly:
This feature will be required if you want to store exceptions in a database: import java.io.*;public class Test{ public static void main(String args[]) { String trace = exceptionToString(new Exception(A new
The garbage collector works automatically, whether you request it to or not. However, it is possible to make a garbage collector request, by invoking the System.gc() method. When garbage collector
When working with pages, the database is not always available. Sometimes, you need to access a test recordset. Here are is an example of how to create a function that