|
|
draw edge
|
Total Hit (3092) |
Draw 3d Edges using Api edge
|
Rating
|
|
|
A simple way to control a common dialog's position
|
Total Hit (4206) |
The CommonDialog control doesn't provide any direct way to decide where a common dialog appears on the screen. In all cases, in fact, the control tries to display the common dialog centered on its owner form. This behavior suggests a simple way to affect the approximate position of the common dialog
....Read More |
Rating
|
|
|
Clear a MaskEditBox control without raising error
|
Total Hit (3136) |
You can't clear the contents of a MaskEdBox control by setting the Text property to a null string if the MaskEdBox's Mask property contains delimiter. In fact, you must include those separators in the value you assign to the Text property, otherwise you get Error 380 - Invalid property value.
A s
....Read More |
Rating
|
|
|
Copy the contents of the WebBrowser control to the Clipboard
|
Total Hit (7581) |
To programmatically copy text from the WebBrowser control you can use its ExecWB method, to which you must pass the OLECMDID_COPY constant as its first argument.
WebBrowser1.ExecWB OLECMDID_COPY, OLECMDEXECOPT_DODEFAULT
You can also select the entire WebBrowser's contents by invoking the Exec
....Read More |
Rating
|
|
|
Download and save an HTML page with the Internet Transfer control
|
Total Hit (2900) |
You can easily download an HTML page by using the Internet Transfer Control (INet). Here's a reusable routine that uses this control to download the HTML page at the specified URL and optionally save it to a local file. In either case the routine returns the contents of the page as a string:
«Co
....Read More |
Rating
|
|
|
Download and save an HTML page with the Internet Transfer control
|
Total Hit (2903) |
You can easily download an HTML page by using the Internet Transfer Control (INet). Here's a reusable routine that uses this control to download the HTML page at the specified URL and optionally save it to a local file. In either case the routine returns the contents of the page as a string:
«Code
....Read More |
Rating
|
|
|
|
Print the WebBrowser's contents
|
Total Hit (3071) |
The WebBrowser control doesn't expose any method to directly print its contents. You can achieve this effect through the ExecWB method, by passing the OLECMDID_PRINT constant in its first argument:
«Code LangId=1»
' display the Print dialog
WebBrowser1.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_PROMP
....Read More |
Rating
|
|
|
Print the WebBrowser's contents
|
Total Hit (2882) |
The WebBrowser control doesn't expose any method to directly print its contents. You can achieve this effect through the ExecWB method, by passing the OLECMDID_PRINT constant in its first argument:
' display the Print dialog
WebBrowser1.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_PROMPTUSER
You can
....Read More |
Rating
|
|
|
|
Storing objects in the Tag property
|
Total Hit (4558) |
The Tag property exposed by many Windows Common Controls (including TreeView's Node objects and ListView's ListItem objects) is more versatile than the ListBox and ComboBox controls' ItemData property, because it is of Variant type and can therefore accept values of most data types.
However, it
....Read More |
Rating
|
|
|
Updating records in DataList and ADO Data Controls
|
Total Hit (4007) |
If you use a DataList control linked to an ADO Data Control and if you want to add a record, you have to create a command button with this code:
«Code LangId=1»
Private Sub cmdAdd_Click()
On Error GoTo AddErr
datPrimaryRS.Recordset.AddNew
txtNew.SetFocus
Exit Sub
AddErr:
MsgBox
....Read More |
Rating
|
|
|
Detect when a new control is added to an ActiveX container
|
Total Hit (2740) |
You can easily create ActiveX controls that work as containers for other controls, by setting their ControlContainer property to True. However, VB doesn't offer any event for detecting when the programmer adds or remove controls to the ActiveX control, after placing it on a form's surface.
It's p
....Read More |
Rating
|
|
|
|
Panel Selector Control
|
Total Hit (2540) |
This article provides a regional selection control which can be floated over other controls to provide additional options for the selected item. The demonstration then shows how to use the control in conjunction with SGrid 2.0 in hot-tracking mode to provide an interface similar to the lists in the
....Read More |
Rating
|
|
|
vbAccelerator S-Grid Control
|
Total Hit (2382) |
The SGrid control is an all-VB grid which can emulate the Outlook messages list, including grouping of messages and message preview. The highly optimised display code makes this grid draw faster than FlexGrid and other VB grids even while it allows more sophisticated displays to be set up. It is als
....Read More |
Rating
|
|
|
Owner-Draw Cells with SGrid 2.0
|
Total Hit (2588) |
This sample demonstrates implementing the IOwnerDrawGridCell interface for SGrid 2.0 to create customised cells within a grid. Two easy to re-use examples are provided: a colour indicator and a progress bar.
|
Rating
|
|
|
MusicLibrary SGrid Sample
|
Total Hit (2367) |
This sample uses SGrid 2.0 along with the MP3 Tags code to load, display and persist a Music Library. It allows library import, sorting, grouping and in the future should be upgraded to include tag editing and play functions. It has been successfully used with over 7,000 tracks.
....Read More |
Rating
|
|
|
Creating ListView Style Groups with SGrid 2
|
Total Hit (2460) |
This sample demonstrates how to use owner-draw to customise the appearance of grouping rows, and to ensure that they remain open in the style of the Windows XP ListView in grouped mode. It also demonstrates adding new rows to a grouped grid and moving them to the correct position given the current s
....Read More |
Rating
|
|
|
S-Grid 2.0 Features
|
Total Hit (2490) |
This article provides a rundown of the new features and updates provided in S-Grid 2.0, and also shows samples of the types of displays that can be set up using the control.
|
Rating
|
|
|
SGrid 2.0
|
Total Hit (3255) |
SGrid 2.0 is an updated version of the popular SGrid control which adds drag-drop hierarchical grouping, owner-draw cells and many other features. It has the same highly-optimised display code but is now further enhanced by much better sort, row insert and delete performance. It remains a great alte
....Read More |
Rating
|
|
|
vbAccelerator CommandBar Control
|
Total Hit (2085) |
The vbAccelerator CommandBar control is a full toolbar/menu control which currently offers configurable styles, colours and a full-object model for configuring the buttons and menus. The control can draw in Office 2003, Office XP, MS Money and System styles, supports icons with alpha-channels and ru
....Read More |
Rating
|
|
|
WinZip UI Style Sample
|
Total Hit (1434) |
This sample demonstrates using the CommandBar controls to create a WinZip-style user interface. It shows how to set up an Image List to read images from a resource-only DLL and picking icons with the correct colour depth for the host system. It also demonstrates using a context menu to customise the
....Read More |
Rating
|
|
|
QuickStart - Creating an IE Toolbar
|
Total Hit (2028) |
Describes how to use the vbAccelerator CommandBar control by demonstrating how to create a toolbar which looks like the Internet Explorer main toolbar.
|
Rating
|
|
|
MS Money UI Style Sample
|
Total Hit (1416) |
This sample demonstrates using the vbAccelerator CommandBar control to create an MS Money style UI. The CommandBar control is used to provide an MS Money style menu, toolbar and status bar, as well as providing dynamic colourisation for other images used in the UI.
....Read More |
Rating
|
|
|
vbAccelerator Toolbar and CoolMenu Control v3.5
|
Total Hit (2284) |
This control allows you to create modern UIs like Internet Explorer or Word with full colour-depth toolbars, CoolMenus, resizable and movable toolbar bands, controls in the toolbar and much more. It works with standard forms and MDI forms and also allows you to create Outlook-style MDI applications
....Read More |
Rating
|
|
|
vbAccelerator Office Docking Bar Control
|
Total Hit (2004) |
This control provides a new container for the vbAccelerator Toolbar and CoolMenu control which allows controls to be docked and undocked to the side of any form. It emulates the style of the Office XP toolbars and provides full support for saving and restoring the layout of the toolbars. It can also
....Read More |
Rating
|
|
|
PopupMenu DLL - Create Unlimited Popup Menus
|
Total Hit (2428) |
The PopupMenu (cNewMenu.dll) ActiveX DLL is allows you to create completely new popup menus with icons for your application. Menus created using this control either can be used as normal Windows Context menus or can be attached to a vbAccelerator CoolMenu and ToolBar control to be used as a form men
....Read More |
Rating
|
|
|
IconMenu Control
|
Total Hit (1661) |
The IconMenu (cPopMenu.ocx) control is a really simple way to get icons into a VB project's menus. It also allows you to create arbitrary new submenus, gives you control over the system menu and has some useful new events indicating when menu items are highlighted and exited.
....Read More |
Rating
|
|