Advertisement

Results for "Author: duncan jones"

2002ASP #5305
OCX interface tips

3 tips that you should definitely use to make your own developed ActiveX controls more developer friendly:

2002ASP #5306
Global Hotkey V1.0.5

Installs a system wide hotkey which triggers the HotkeyPressed event whenever the chosen hotkey combination is pressed - regardless of whether your application has the focus or not. Release 1.0.5 allows the hotkey to be changed at runtime and also to be enabled/disabled.

2002ASP #5307
HiByte,HiWord,LoByte,LoWord, MakeInt and MakeLong

Often especially when dealing with the API, byte and integer data types will be packed into LONG INTEGER (32 bit) values. Thes snippets allow you to decode/encode these 32 bit longs:

2002ASP #5308
How windows works (part 1)

A beginners guide to how windows (tm) works

2002ASP #5309
Inter process communication using Sendmessage

This articles shows how you can use windows messages to communicate between two (or more) applications.

2002ASP #5310
Enhanced VB Forms (v2)

2 controls that vastly extend the cababilities of Visual basic. *** VBEventWindow - provides a simple subclassing control. Events: - ActiveApplicationChanged, fired when your app gains or loses user focus - LostCapture, fired when your app gains or loses the capture - KeyPressed, fired when any of the keys are pressed - LowMemory, fired when the system is running low on memory - Move, fired when the form is moved - VerticalScroll, HorizontalScroll, fired when the form scrollbars are set - WindowsSettingsChanged, WindowsINIChanged , fired when the windows environment settings are changed - NonClientMouseMove,NonClientMouseDown,NonClientMouseUp,NonClientDblClick, fired when a mouse event occurs in the non-client part of your form - MinMaxSize, fired when the OS wants to know what size to make your form either in response to a minimise/maximise command or when the user is dragging the resize box. - MouseOverMenu, fired when the mouse is over a top level menu - WindowMessageFired fired for all the other windows messages Methods: - InvalidateRect, Sets part of the form invalid to indicate that it needs to be repainted Properties: - ClassName, returns the windows class name fo the form - DeviceContext, returns the device contect of the form (for graphical operations) - HorizontalScrollbar, VerticalScrollbar, sets or unsets scrollbars on the form - TopMost sets the form to float over the top of other forms - Transparent, makes the formclient area invisible Use: In the form load... Private Sub Form_Load() Me.VBEventWindow.ParentForm = Me.hWnd End Sub *** VBSysTrayCtl - Provides a simple control to allow your application to use the SysTray Events: - MouseMove, Fired when the mouse moves over the tray icon - MouseDown, Fired when a mouse down event occurs over the tray icon - MouseUp, Fired when a mouse up event occurs over the tray icon - MouseDblClick, Fired when the user double clicks the Tray Icon Methods: - ShowIcon, displays the icon in the system tray area - Hideicon, removes the icon from the system tray area - Refresh, updates the icon displayed in the system tray area Properties: - Tooltip, the tip that is displayed if the user hovers the mouse over your systray icon Use: In the form load.... Private Sub Form_Load() Me.VBSysTrayCtl1.Tooltip = "Merrion Computing" Me.VBSysTrayCtl1.ShowIcon End Sub Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer) Me.VBSysTrayCtl1.Hideicon End Sub

2002ASP #5311
Windows Messages demonstrator

This program allows you to send Windows Messages to any active window on the system in order to find out what happens when you do. Hours of fun...

2002ASP #5312
Debug.Print...from an Exe

Everyone knows how useful Debug.Print can be when debugging a program in the run time environment...but why not make these debug comments available from an executable. Simply replace Debug.Print with the following, and then when your application is running as an executable you can use a debugger (such as DBMON.EXE, downloadable form MSDN) to see the debug comments as they occur:

2002ASP #5313
ApiClipboard

Allows you to copy the content of the clipboard to one side, and then restore it at a later time. Useful if you want to swap things in and out of the system clipboard programatically.

2002ASP #5314
Getting the status of the selected printer from Visual Basic

Shows how you can use the Windows API to return additional information about the printer above and beyond that which is available through the Visual Basic Printer object.

2002C #13909
OCX interface tips

3 tips that you should definitely use to make your own developed ActiveX controls more developer friendly:

2002C #13910
Global Hotkey V1.0.5

Installs a system wide hotkey which triggers the HotkeyPressed event whenever the chosen hotkey combination is pressed - regardless of whether your application has the focus or not. Release 1.0.5 allows the hotkey to be changed at runtime and also to be enabled/disabled.

2002C #13911
HiByte,HiWord,LoByte,LoWord, MakeInt and MakeLong

Often especially when dealing with the API, byte and integer data types will be packed into LONG INTEGER (32 bit) values. Thes snippets allow you to decode/encode these 32 bit longs:

2002C #13912
How windows works (part 1)

A beginners guide to how windows (tm) works

2002C #13913
Inter process communication using Sendmessage

This articles shows how you can use windows messages to communicate between two (or more) applications.

2002C #13914
Enhanced VB Forms (v2)

2 controls that vastly extend the cababilities of Visual basic. *** VBEventWindow - provides a simple subclassing control. Events: - ActiveApplicationChanged, fired when your app gains or loses user focus - LostCapture, fired when your app gains or loses the capture - KeyPressed, fired when any of the keys are pressed - LowMemory, fired when the system is running low on memory - Move, fired when the form is moved - VerticalScroll, HorizontalScroll, fired when the form scrollbars are set - WindowsSettingsChanged, WindowsINIChanged , fired when the windows environment settings are changed - NonClientMouseMove,NonClientMouseDown,NonClientMouseUp,NonClientDblClick, fired when a mouse event occurs in the non-client part of your form - MinMaxSize, fired when the OS wants to know what size to make your form either in response to a minimise/maximise command or when the user is dragging the resize box. - MouseOverMenu, fired when the mouse is over a top level menu - WindowMessageFired fired for all the other windows messages Methods: - InvalidateRect, Sets part of the form invalid to indicate that it needs to be repainted Properties: - ClassName, returns the windows class name fo the form - DeviceContext, returns the device contect of the form (for graphical operations) - HorizontalScrollbar, VerticalScrollbar, sets or unsets scrollbars on the form - TopMost sets the form to float over the top of other forms - Transparent, makes the formclient area invisible Use: In the form load... Private Sub Form_Load() Me.VBEventWindow.ParentForm = Me.hWnd End Sub *** VBSysTrayCtl - Provides a simple control to allow your application to use the SysTray Events: - MouseMove, Fired when the mouse moves over the tray icon - MouseDown, Fired when a mouse down event occurs over the tray icon - MouseUp, Fired when a mouse up event occurs over the tray icon - MouseDblClick, Fired when the user double clicks the Tray Icon Methods: - ShowIcon, displays the icon in the system tray area - Hideicon, removes the icon from the system tray area - Refresh, updates the icon displayed in the system tray area Properties: - Tooltip, the tip that is displayed if the user hovers the mouse over your systray icon Use: In the form load.... Private Sub Form_Load() Me.VBSysTrayCtl1.Tooltip = "Merrion Computing" Me.VBSysTrayCtl1.ShowIcon End Sub Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer) Me.VBSysTrayCtl1.Hideicon End Sub

2002C #13915
Windows Messages demonstrator

This program allows you to send Windows Messages to any active window on the system in order to find out what happens when you do. Hours of fun...

2002C #13916
Debug.Print...from an Exe

Everyone knows how useful Debug.Print can be when debugging a program in the run time environment...but why not make these debug comments available from an executable. Simply replace Debug.Print with the following, and then when your application is running as an executable you can use a debugger (such as DBMON.EXE, downloadable form MSDN) to see the debug comments as they occur:

2002C #13917
ApiClipboard

Allows you to copy the content of the clipboard to one side, and then restore it at a later time. Useful if you want to swap things in and out of the system clipboard programatically.

2002C #13918
Getting the status of the selected printer from Visual Basic

Shows how you can use the Windows API to return additional information about the printer above and beyond that which is available through the Visual Basic Printer object.

Languages
Top Categories
Global Discovery