Category Archives: Visual Basic 6 (VB6)

Path/Extension

Using some simple string handling magic, this project shows how to extract the path and extension from a filename. Attachments File Uploaded Size 899-20170811-080207-PATHEXT.ZIP 8/11/2017 8:02:07 AM 1611

Window On Top

A short and simple demonstration on making a window stay on top of all other windows on-screen. Attachments File Uploaded Size 899-20170811-075748-ONTOP.ZIP 8/11/2017 7:57:48 AM 2027

No Minimize

How to disable the Minimize system menu option. Also disables the minimize icon. The technique can be used to delete any system menu option.  Attachments File Uploaded Size 899-20170809-201106-NOMIN.ZIP 8/9/2017 8:11:06 PM 1412

MultiLine TextBox

How to extract the lines from a multiline TextBox. Also shows how to auto-scroll the TextBox as you add items.  Attachments File Uploaded Size 899-20170809-200835-MULTILIN.ZIP 8/9/2017 8:08:35 PM 1655

MIDI Note

How to play a MIDI note via low-level MIDI API. Plays a few MIDI notes via the MIDI stream interface.  Attachments File Uploaded Size 899-20170809-071224-MIDINOTE.ZIP 8/9/2017 7:12:24 AM 2290

Menu Status

How to display status messages when menu items are highlighted. Subclasses a form to watch for menu item clicks. Illustrates a bug in GetMenuItemInfo and a method to determine if the top level menu is the current selection.  Attachments File Uploaded Size 899-20170809-070952-MENUSTAT.ZIP 8/9/2017 7:09:52 AM 3314

System Menus

How to retrieve system menu items without crashing Windows. Windows 98 introduced bitmaps in its system menus, requiring a slightly different approach to menu data retrieval from code.  Attachments File Uploaded Size 899-20170808-063302-MENUSELS.ZIP 8/8/2017 6:33:02 AM 2137

Menu Selection

How to select the menu items of other programs. Attachments File Uploaded Size 899-20170808-063055-MENUSEL.ZIP 8/8/2017 6:30:55 AM 1671

Drag form without titlebar

Drag a form that has no titlebar! Add the routine listed below, and call it in the ‘MouseDown’ event of the form (or a control on the form): MoveWindow Me.Hwnd Windows API/Global Declarations: Private Declare Function ReleaseCapture Lib “user32” () As LongPrivate Declare Function SendMessage Lib “user32” Alias “SendMessageA” (ByVal hWnd As Long, ByVal wMsg As Long, ByVal… Read More »