|
Change the Screen Resolution
|
Total Hit (2975) |
Change the screen resolution from VB using the EnumDisplaySettings and ChangeDisplaySettings APIs.
|
Rating
|
|
|
Code Based Timers
|
Total Hit (2820) |
Create a code based timer that's more accurate with better resolution than VB's Timer control. The timer resides in an ActiveX DLL and doesn't need to be sited on a form. You can use it in applications that run unattended and that have no visual interface. Also make counting timers and timers that c
....Read More |
Rating
|
|
|
Create Your Own Screen Saver or Start an Existing Screen Saver
|
Total Hit (2841) |
Create a code based timer that's more accurate with better resolution than VB's Timer control. The timer resides in an ActiveX DLL and doesn't need to be sited on a form. You can use it in applications that run unattended and that have no visual interface. Also make counting timers and timers that c
....Read More |
Rating
|
|
|
Determining Memory Statistics and System Resources
|
Total Hit (3092) |
Retrieve the current state of the system's memory using the GlobalMemoryStatus function. On Windows 9x machines you can determine the system resource values displayed in Explorer's Help About dialog by using the Resource Meter's Rsrc32.dll. Use this info to determine to if there are enough reources
....Read More |
Rating
|
|
|
|
System Metrics Information
|
Total Hit (2864) |
The GetSystemMetrics function returns a wealth of information including the width and height of the screen, window, icon, border, caption, scroll bar elements and more.
|
Rating
|
|
|
System Parameters Information
|
Total Hit (2899) |
The SystemParametersInfo function queries systemwide parameters and provides information about the mouse, keyboard, desktop, icons size, screen saver,... This example also demonstrates how to get the Window's version using GetVersionEx.
|
Rating
|
|
|
Add Your Application's Icon to the System Tray
|
Total Hit (2904) |
Add your application's icon to the System Tray and respond to mouse events occurring on your system tray icon. Work with ActiveX components from the system tray. Normally this is not possible due to the way Windows handles Remote Procedure Calls.
|
Rating
|
|
|
Locale Aware Date Format
|
Total Hit (2721) |
Get the Locale specific Date and Number formats. If your regional settings are set to German, the standard date looks like "dd.mm.yy". Convert to the proper date format based on the locale.
|
Rating
|
|
|
|
|
|
|
How to shutdown remote machine on a network using API.
|
Total Hit (4912) |
This demo will show you how to shutdown remote machine in a specified interval. When you shutdown machine you will see following warning message.
«BR»«P Align=center»«img src='/Main/Articles/Lang1/Cat3/Code3580/image3580_1.gif'/»«/P»«BR»
«b»For Quick Demo«/b»
1. Start a new project in Vis
....Read More |
Rating
|
|
|
How to use Named Pipes in a Visual Basic 32-bit Program ?
|
Total Hit (11974) |
Visual Basic can create applications that communicate to other processes by means of Named Pipes. The Named Pipe must be created on Windows 2000 or Windows NT; however, you can read from and write to that pipe from any 32-bit platform.
This article demonstrates Client/Server communication using a
....Read More |
Rating
|
|
|
How to enumerate available monitor on your system ?
|
Total Hit (4099) |
If you are working with multiple monitors then this example will show you how to enumerate available monitors on your sytem and retrive properties of monitor.
«b»Step-By-Step Example«/b»
- Create a standard exe project
- Add one Module to project
- Place one textbox on form1, set MultiLine=T
....Read More |
Rating
|
|
|
|
How to run system clock slower/faster ?
|
Total Hit (7671) |
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
|
|
|
Interprocess communication using DDE (Dynamic Data Exchange) - Part1
|
Total Hit (16692) |
Microsoft Windows provides several methods for transferring data between applications. One method is to use the Dynamic Data Exchange (DDE) protocol. The DDE protocol is a set of messages and guidelines. It sends messages between applications that share data and uses shared memory to exchange data b
....Read More |
Rating
|
|
|
Interprocess communication using DDE (Dynamic Data Exchange) - Part2
|
Total Hit (10073) |
In our previous article «b»«a href='CodeDetail.aspx?CodeId=3767'»Interprocess communication using DDE (Dynamic Data Exchange) - Part1«/a»«/b» of this this series we learned about basic concept of DDE and we also saw that how to implement DDE Server using DDEML Apis. Now in this article I will show y
....Read More |
Rating
|
|
|
Working with Multiple Monitors
|
Total Hit (2896) |
Windows 98/2000 systems and above provide support for multiple monitors. This is a great thing except that it messes up old programs which attempt to do things like centre Windows or otherwise restrict their position to the visible area of the screen. This tip provides some simple code to allow you
....Read More |
Rating
|
|
|
Detecting Windows Settings Changes
|
Total Hit (2462) |
This tip demonstrates how to detect windows settings changes in your application. You will need to have installed and registered the Subclassing and Timer Assistant (SSubTmr.DLL for VB5 and SSubTmr6.DLL for VB6), available from this site at Subclassing without the crashes to run this sample.
....Read More |
Rating
|
|
|
How to Shutdown the System in Windows 9x and NT
|
Total Hit (2861) |
This tip demonstrates how to shutdown, logoff and/or reboot a system. Shutting down a Windows 9x system is very straightforward - just one API call to ExitWindowsEx is all that is required. However, under NT it is a little more tricky. By default, no application processes under Windows NT have the p
....Read More |
Rating
|
|
|
Forcing a local or remote NT system to reboot
|
Total Hit (2904) |
Under Windows NT, you can force a timed system shutdown on either the local machine or a remote network machine. This code tip shows how to do it. You can specifiy how long it will be before the machine will be shutdown in seconds (a zero value shuts down immediately), how remorseless the shutdown p
....Read More |
Rating
|
|
|
Enumerating the Installed and Supported System Locales
|
Total Hit (1675) |
In addition to locale information pertaining to the current system setting, the EnumSystemLocales API provides the means to enumerate via callbacks all supported or installed national language support for a given system. Armed with the country LCID's returned by the call, an application can retrieve
....Read More |
Rating
|
|
|