ExplodeForm – Show a form with an explode effect
Private Declare Sub Sleep Lib “kernel32” (ByVal dwMilliseconds As Long)’ Show a form with an explosion effect.’ the lNumSteps parameter is the number of steps to increase the form size
Private Declare Sub Sleep Lib “kernel32” (ByVal dwMilliseconds As Long)’ Show a form with an explosion effect.’ the lNumSteps parameter is the number of steps to increase the form size
Private Declare Function WNetConnectionDialog Lib “mpr.dll” (ByVal hwnd As Long, _ ByVal dwType As Long) As LongPrivate Declare Function WNetDisconnectDialog Lib “mpr.dll” (ByVal hwnd As Long, _ ByVal dwType As
Sometimes you run into a situtation where you want to delete all the files or a particular type of file (like text files – *.txt) in a folder.Here is a
Though each character of BSTR and Unicode strings are 2 characters wide, there is a fundamental difference between the two. BSTR strings have to be length prefixed, which means that
import java.text.*;import java.util.*;public class my_data { private SimpleDateFormat formatter; private Date currentdate; public my_data() { currentdate=new Date(); formatter=new SimpleDateFormat(
Sometimes we may need to restrict users from entering anything besides numbers in a textbox. The following code can achieve this: Option ExplicitPrivate strClipboardText As StringPrivate Sub txtNumberBox_KeyPress(KeyAscii As Integer)
Please note that using the join function makes this code VB6 only (for only a small performance gain). dim i as longdim s as stringfor i = 0 to 100000
Define a class, say SessionTimeoutIndicator, which implements theinterface javax.servlet.http.HttpSessionBindingListener. Next create a SessionTimeoutIndicator object and add it to the user session. When the session is removed, the SessionTimeoutIndicator.valueUnbound() method will