|
How to test CDO email using VB Script.
|
Total Hit (3549) |
Sometimes we need to check CDO on the server with minimum amount of time.
Following script will send an email using CDO object library. If you dont have CDO then it will throw an error.
- Create an empty file in notepad.
- Copy/Paste the following script
- Save file as CDOMailTest.vbs
- Do
....Read More |
Rating
|
|
|
Using LineDDA api to control each point of line.
|
Total Hit (3324) |
This small code snippet will show you the use of LineDDA api which is very useful when you want to control each point of line. LineDDA use a callback method which gives x and y cordinates of the point to be drawn.
«b»Step-By-Step Example«/b»
- Create a standard exe project
- Add one module t
....Read More |
Rating
|
|
|
How to run system clock slower/faster ?
|
Total Hit (7685) |
In this article we will have lots of fun with system clock. I will explain you how to retrive and change your system clock setting to make your system clock slower/faster using SetSystemTimeAdjustment and GetSystemTimeAdjustment APIs. You will also learn how to assign special privilege to an applica
....Read More |
Rating
|
|
|
Load, Modify and Save 1, 4, 8, 15 (Bit-fields), 16, 24 and 32-bit Bitmaps using GDI Apis.
|
Total Hit (5170) |
This sample code will show you how to load 1, 4, 8, 15 (Bit-fields), 16, 24 and 32-bit images from disk and modify them into memory and save back to disk.
Just copy/paste the following code into form1 code window. Before you run this example make sure that you modify the ImgPath and SavePath.
....Read More |
Rating
|
|
|
How to retrive and change system's short/long date format
|
Total Hit (7950) |
This article will demonstrate how to retrive system's local name and short/long date format. It will also show you how to change current short/long date format of the system.
To implement Copy/Paste Demo
- Create a standard exe project
- Add a module
- Place 3 labels on the form1 (to diaplay
....Read More |
Rating
|
|
|
|
|
|
|
|
ListFiles - List all the files in a directory or directory tree
|
Total Hit (1676) |
«Code LangId=1»
' list all the files in a directory
' if NESTEDDIRS = True it lists a whole directory tree
'
' returns a 1-based array containing all the listed files
Function ListFiles(ByVal Path As String, Optional ByVal NestedDirs As Boolean) _
As String()
Dim fso As New Scripti
....Read More |
Rating
|
|
|
Put buffering and Response.Flush to good use
|
Total Hit (2468) |
IIS5 enables buffering by default, therefore all the output from your ASP is actually sent to the browser only when the page completes its processing. In many cases this approach improves the overall processing speed, and indirectly makes for a more scalable site. However, buffering has two minor de
....Read More |
Rating
|
|
|
Open Windows's Start menu
|
Total Hit (2099) |
By simulating the pressing of the "Windows" menu - or better yet, of the Ctrl-Escape key combination, which also works on older keyboards - you can programmatically bring up the Start menu. You can't use the SendKeys function to do so, though, and you have to resort to the keybd_event API function:
....Read More |
Rating
|
|
|
|
Streaming .WAV File Player
|
Total Hit (2205) |
Playing digital audio can be achieved at a number of different levels under windows. At the simplest level, there is the Multimedia Control Interface (MCI) control provided with VB. This is turn is a very thin wrapper around the MCI API provided with Win32, which offers about the same level of contr
....Read More |
Rating
|
|
|
Moving Forms and Creating Resize Gripper Boxes
|
Total Hit (1798) |
This article provides code demonstrating how to modify the behaviour of a VB form so that parts of it behave like title bars and resize borders. You can use this code to:
Create windows without a title bar that you can click on anywhere to move around.
Build fake title bars.
Add a Resize Grippe
....Read More |
Rating
|
|
|