|
Running an EXE at a particular position with particular dimensions.
|
Total Hit (3415) |
This sample code will show you how to control a shelled application using API.
I have used several tricks in this sample code. Once you know these tricks, you can also use them in your programs. This code will open «b»Notepad«/b» at a specified position with specified window size. You will also
....Read More |
Rating
|
|
|
How to open a file with Wordpad or Notepad
|
Total Hit (2973) |
I tried to find sourcecode which allows me to open a file with any extension with Wordpad and Notepad. And finally I came up with this solution.
Happy Programming....
|
Rating
|
|
|
How to display different control panel applets
|
Total Hit (3300) |
«code LangId=1»' Display the Control Panel
Call Shell("rundll32.exe shell32.dll,Control_RunDLL", vbNormalFocus)
'Display the Accessibility Properties
Call Shell("rundll32.exe shell32.dll,Control_RunDLL access.cpl", vbNormalFocus)
'Display Add/Remove Programs
Call Shell("rundll32.exe shell32
....Read More |
Rating
|
|
|
|
How to move/resize window using API?
|
Total Hit (5106) |
«code LangId=1»Private Const SWP_SHOWWINDOW = &H40
Private Const SW_HIDE = 0
Private Const SW_RESTORE = 9
Private Declare Function ShellExecute Lib "shell32.dll" _
Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, _
ByVal lpFile As String, ByVal lpParameter
....Read More |
Rating
|
|
|
Getting the Correct Filename for a Shortcut
|
Total Hit (2388) |
If your application creates or otherwise manipulates shortcuts then you should use the Operating System to determine what the filename for the shortcut should be, as the extension is subject to i18n. This article demonstrates how to use the SHGetNewLinkInfo API call to do this, and also provides a h
....Read More |
Rating
|
|
|
Creating Shortcuts using VB
|
Total Hit (2273) |
This article expands on the cShellLink class provided to allow the shortcuts used in Window's Recent Document Collection to be investigated. It demonstrates how to use the class to read and write shortcuts, including choosing the icon, start up directory and more.
....Read More |
Rating
|
|
|
Add Your App to the Systray the Easy Way
|
Total Hit (2618) |
This sample application presents a small form which you can drop into your project to get immediate SysTray support. A lot of the source code I've seen for VB SysTray interfaces has used an OCX or DLL and subclassed for a SysTray message, however, it turns out you don't need to do this, because you
....Read More |
Rating
|
|
|
Thumbnail Extraction Using the Shell
|
Total Hit (2227) |
Since Windows Me/2000, the Windows Shell has included a mechanism for extracting a small thumbnail image for any item in the namespace. This sample demonstrates how to use this function to get thumbnail images for web pages, images, Office documents - in fact anything that supports thumbnailing in E
....Read More |
Rating
|
|
|
Adding, Deleting and Viewing Recent Documents
|
Total Hit (1049) |
This sample demonstrates how to add, read and clear the Shell's Recent Document List from VB code. At the same time, it provides a useful ShellLink class for working with Shortcuts.
|
Rating
|
|
|
|
Shell an application and wait asynchronously for completion
|
Total Hit (2687) |
Surprisingly often it comes in handy to be able to shell another application and wait for it to complete. This sample shows what I think is the best way to do it. At least, this method has been totally reliable for me. Its better than some methods I have seen because the application isn't frozen whi
....Read More |
Rating
|
|