|
Getting StdPicture's Width and Height properties in Pixels
|
Total Hit (4979) |
In general, Visual Basic doesn't provide a way to determine the size of a bitmap loaded into a PictureBox control. But you can derive this information if you set the control's AutoSize property to True and then read the control's ScaleWidth and ScaleHeight properties. If you don't want to resize a v
....Read More |
Rating
|
|
|
|
Guitar simulation using MIDI APIs
|
Total Hit (5803) |
«b»Step-By-Step Example«/b»
- Create a standard exe project
- Add one listbox, combobox and 2 command button controls
- Add one class module and rename it to clsMIDI
- Add the following code in form1
«b»Form1.frm«/b»
«code LangId=1»Dim objMIDI As New clsMIDI
Private Enum enumInstruments
....Read More |
Rating
|
|
|
Tip: How to display all environment variables
|
Total Hit (2434) |
«code LangId=1»Private Declare Function GetEnvironmentStrings Lib "kernel32" Alias "GetEnvironmentStringsA" () As Long
Private Declare Function FreeEnvironmentStrings Lib "kernel32" Alias "FreeEnvironmentStringsA" (ByVal lpsz As String) As Long
Private Declare Function lstrlen Lib "kernel32" Alias
....Read More |
Rating
|
|
|
How to start/stop and enum services using ADSI
|
Total Hit (4091) |
This article will show you sample code to use ADSI to manage services.
«b»Step-By-Step Example«/b»
- Create a new standard exe project
- Add reference to "Active Ds Type Library" (Project->Add Reference)
- Add windows common control 6.0 (Project->Controls)
- Add one listview, five command b
....Read More |
Rating
|
|
|
Undocumented Shell Path APIs (Extracting Component Parts).
|
Total Hit (4601) |
Way back when Microsoft released Internet Explorer 4.0, they bundled with it a number of upgrades to the operating system including a new DLL called SHLWAPI.DLL (Shell Lightweight Utility APIs). That DLL provided programmers with some useful path manipulation functions (amongst other things), but ob
....Read More |
Rating
|
|
|
Undocumented Shell Path APIs (Testing Path).
|
Total Hit (4212) |
Way back when Microsoft released Internet Explorer 4.0, they bundled with it a number of upgrades to the operating system including a new DLL called SHLWAPI.DLL (Shell Lightweight Utility APIs). That DLL provided programmers with some useful path manipulation functions (amongst other things), but ob
....Read More |
Rating
|
|
|
How to extract various parts of URL using UrlGetPart API ?
|
Total Hit (4927) |
Have you ever tried to extract various parts of URL....? If yes then you know how tedious it is. But in fact is very simple if you use API UrlGetPart.
Here is a simple example to use this API.
«b»Step-By-Step Example«/b»
- Create a standard exe project
- Place the following code in form1
....Read More |
Rating
|
|
|
Very simple way to create transparent image using API
|
Total Hit (2526) |
If you ever need to create transparent BMP then don't worry here is an API which makes your life easy. To make this demo simple I have avoided color selection. In this demo default transparent color is first left top pixel color of source image.
«b»Step-By-Step Example«/b»
- Create a standard
....Read More |
Rating
|
|
|
WMI : Retrive extended information about processor
|
Total Hit (3215) |
Windows Management Instrumentation (WMI) makes Windows extremely manageable using a single consistent, standards-based, extensible and object-orientated interface. WMI is the Microsoft implementation of Web-Based Enterprise Management (WBEM), an industry initiative to develop a standard technology f
....Read More |
Rating
|
|
|
Create and verify digital signature to detect data tampering.
|
Total Hit (19087) |
In this article we will talk about digital signature and how to use it to detect any intended/unintended data tampering. Data can be tmpered in many ways it can be intentionally tmpered or it can be currupted during communication or may be some other reason. Anyways today I will show you the use of
....Read More |
Rating
|
|
|
How to retrive and delete all internet cache entries?
|
Total Hit (4761) |
In this article I will show you the use of FindFirstUrlCacheEntry, FindNextUrlCacheEntry, FindCloseUrlCache and DeleteUrlCacheEntry APIs. First three APIs are used to retrive cache entries and DeleteUrlCacheEntry is used to delete a specific entry from the cache.
Here is the example
«b»Step-By
....Read More |
Rating
|
|
|
How to retrive only visible items of treeview control?
|
Total Hit (5712) |
If you want to retrive only visible item count for treeview control then you can use TreeView1.GetVisibleCount but the problem is this will only return items which are 100% visible so it wont give you exact number.
In this article I will show you the trick to get only visible items of treeview u
....Read More |
Rating
|
|
|
Create your own Image/Link extractor tool using Regular Expressions
|
Total Hit (3153) |
This is a very simple code to present use of Regular expression to solve some complex text operation which is kinda impossible using inbuilt string functions available in Visual Basic.
For More information Visit the following MSDN article
«a href='http://msdn.microsoft.com/library/en-us/dnclin
....Read More |
Rating
|
|
|
|
|
|
How To Automate Microsoft Excel from Visual Basic
|
Total Hit (3754) |
There are two ways to control an Automation server: by using either late binding or early binding. With late binding, methods are not bound until run-time and the Automation server is declared as Object. With early binding, your application knows at design-time the exact type of object it will be co
....Read More |
Rating
|
|
|
|
Working with ADSI (Active Directory Service Interface)
|
Total Hit (7435) |
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 Encode/Decode URL using API
|
Total Hit (5172) |
Sometimes you might need to Encode/Decode URL programatically. This article will show you how easy it is using 2 undocumented APIs.
Encoding URL means convert any unusual character into escape code (e.g. space will be replaced by %20).
Decoding URL means convert escape code into actaul charac
....Read More |
Rating
|
|
|
|
|
Undocumented Shell Path APIs (Combining and Constructing Path).
|
Total Hit (3106) |
Way back when Microsoft released Internet Explorer 4.0, they bundled with it a number of upgrades to the operating system including a new DLL called SHLWAPI.DLL (Shell Lightweight Utility APIs). That DLL provided programmers with some useful path manipulation functions (amongst other things), but ob
....Read More |
Rating
|
|
|
|
|
|
Extending the functionality of the VB ListView controls
|
Total Hit (2097) |
The "ListView" control in both Comctl32.ocx and Mscomctl.ocx is simply a wrapper that superclasses (encapsulates) the real "listview" common control in Comctl32.dll. This allows the real listview common control messages and definitions to be used to override almost every aspect of the VB ListView co
....Read More |
Rating
|
|
|
|
Connection strings for various OLEDB Data Providers
|
Total Hit (2627) |
OLE DB Providers for Active Directory Service, Advantage, AS/400 (from IBM), AS/400 and VSAM (from Microsoft), Commerce Server, DB2, DTS Packages, Exchange, Excel, Internet Publishing, Index Server, Microsoft Jet, Microsoft Project, MySQL, ODBC Databases, OLAP Services, Oracle (from Microsoft), Orac
....Read More |
Rating
|
|