|
Working with ADSI (Active Directory Service Interface)
|
Total Hit (7448) |
Active Directory Services Interfaces (ADSI) is a set of open interfaces that abstract the capabilities of directory services from different network providers to present a single view for accessing and managing network resources. Administrators and developers can use ADSI services to enumerate and ma
....Read More |
Rating
|
|
|
How to get/set list of files copied in to clipboard using API
|
Total Hit (6005) |
«b»Step-By-Step Example«/b»
- Create a standard exe project
- Add one drive control, one dir control, one file control, three command button controls and one timer control. Set MultiSelect=True for File control
- Add the following code in form1
«code LangId=1»Option Explicit
' Required data
....Read More |
Rating
|
|
|
|
How to display Advanced document property of a selected printer ?
|
Total Hit (3542) |
This demo will show you how to use AdvancedDocumentProperties function to displays a printer-configuration dialog box for the specified printer, allowing the user to configure that printer.
«b»Step-By-Step Example«/b»
- Create a standard exe project
- Place following code in form1 code windo
....Read More |
Rating
|
|
|
How to modify (Add/Remove) System Menu using API ?
|
Total Hit (12075) |
In this article you will learn how to modify system menu (control menu). You will also learn how to handle event of newly added menu item.
To modify system menu first you have to call GetSystemMenu api to get handle of system menu and then you can all other menu APIs (i.e. GetMenuItemCount, Appen
....Read More |
Rating
|
|
|
|
|
|
|
|
|
|
|
ReplaceLast - Replace the last occurrence of a substring
|
Total Hit (2126) |
«Code LangId=1»' Replace the last occurrence of a string
Function ReplaceLast(Expression As String, Find As String, ReplaceStr As String, _
Optional Compare As VbCompareMethod) As String
Dim i As Long
i = InStrRev(Expression, Find, , Compare)
If i Then
' the search s
....Read More |
Rating
|
|
|
ShiftRight - Shift a Long to the right
|
Total Hit (2434) |
«Code LangId=1»' Shift to the right of the specified number of times
'
' NOTE: requires Power2()
Function ShiftRight(ByVal value As Long, ByVal times As Long) As Long
' we need to create a mask of 1's corresponding to the
' digits in VALUE that will be retained in the result
Dim
....Read More |
Rating
|
|
|
InstrLast - Find the last occurrence of a substring
|
Total Hit (2775) |
«Code LangId=1»
' returns the last occurrence of a substring
' The syntax is similar to InStr
Function InstrLast(ByVal Start As Long, Source As String, search As String, _
Optional CompareMethod As VbCompareMethod = vbBinaryCompare) As Long
Do
' search the next occurrence
....Read More |
Rating
|
|
|
|
Pass the hidden Global object to an ActiveX DLL
|
Total Hit (3104) |
An ActiveX DLL doesn't have direct access to the environment of the calling EXE. For example, the App and Printer objects in the DLL don't correspond to the objects with the same name in the main application, therefore if you want to print something from the DLL using the same settings as the main a
....Read More |
Rating
|
|
|
References to form and controls prevent complete form unloading
|
Total Hit (1745) |
When you assign a reference to a form (or one of its controls) to an object variable which is stored outside the form module, you must set the variable to Nothing or the form won't be completely unloaded. In other words, it will become invisible but will continue to take memory.
Note that this i
....Read More |
Rating
|
|
|
Check whether a string array contains an item (without a loop)
|
Total Hit (2557) |
To determine whether a String array contains a given item it seems that you can't avoid writing a loop. However, you can do it with just one line of code, using the new VB6 Join function:
«Code LangId=1»
' ARR is an array of string, SEARCH is the value to be searched
Found = InStr(1, vbNullChar
....Read More |
Rating
|
|
|
Tutorial - Image List Control Introduction
|
Total Hit (2125) |
The Image List control allows you to add images to your program, which you can use in the other Common Controls (Toolbar, TreeView, ListView etc). To add the ImageList control to your VB project, click Project|Components, and check the box next to Microsoft Windows Common Controls x.x where x is the
....Read More |
Rating
|
|
|
ListView Demo 4 - Adding the Associated Icons
|
Total Hit (1128) |
By far the most complicated code yet, this page adds the code necessary to retrieve the Windows associated icon for a given file, assign it to an imagelist dynamically, and use it to display with the file in the listview. Among the features of the method detailed here is the reuse of an icon if it h
....Read More |
Rating
|
|
|
|
|
Text Box Balloon tip support in XP
|
Total Hit (935) |
This tip demonstrates how to to use the new Balloon Tip support provided for TextBoxes under XP. Cue Banners may also work, but only if you don't have multiple language support installed.
|
Rating
|
|
|
Texturising Images
|
Total Hit (1924) |
This sample provides a simple image processing application which applies a texture to an image by modifying the lightness of the image according to the lightness of a texture image. The texture image is tiled across the surface of the processed image.
....Read More |
Rating
|
|
|
True Colour DIBSection
|
Total Hit (2704) |
This article describes in detail the DIB Section techniques used in the vbAccelerator Image Processor. It describes what DIB Sections are, how to use them and provides True Colour DIBSection class I wrote to wrap up the DIB Section.
|
Rating
|
|
|
|
Mail Checker Sample Application
|
Total Hit (2451) |
the tutorial that shows you all the steps of creating of the simple application for receiving e-mail.
|
Rating
|
|
|
Tutorial : Tracking FTP session state
|
Total Hit (1998) |
The CFtpClient class has a number of helper properties and events that allow us to find out what is going on inside the class and what data is transferred on the wire at any moment of the FTP session. Today we’ll examine two events of the class: OnStateChange and SessionProtocolMessage. We’ll modify
....Read More |
Rating
|
|