|
|
|
|
|
|
 |
Dynamically Add Controls to a Form with Visual Basic 6.0
|
Total Hit (30540) |
Visual Basic 6.0 allows you to dynamically add control to a form at run- time using the new Add method of the Controls collection. This article shows how to dynamically add intrinsic and ActiveX controls.
«pre»«b»Control«/b» «b»ProgID«/b»
==========================================
CheckB
....Read More |
Rating
 |
|
 |
Change The Width of Items in a Listbox
|
Total Hit (2541) |
Normally in a VB ListBox, if a ListItem is too long to fit, it is clipped by the display. This tip demonstrates how to modify a ListBox so it displays a longer items with a horizontal scroll bar.
|
Rating
 |
|
|
|
|
 |
Detect when a Combo Box Drops Down or Closes Up
|
Total Hit (2082) |
This tip demonstrates how to detect a Combo Box drop down or close up by using subclassing. You will need to have installed and registered the Subclassing and Timer Assistant, available from this site at Subclassing without the crashes to run this sample.
....Read More |
Rating
 |
|
 |
Add a Check Box to the Left Hand Side of a Drop-Down Combo Box
|
Total Hit (1912) |
In Microsoft's Outlook Express, there is a find window which allows you to set a date range to search in. You turn this date range on and off by clicking a check box which is embedded in the left hand side of the combo box. The text of the combo box is moved to the left to accommodate the check box.
....Read More |
Rating
 |
|
 |
Make a ComboBox drop down when you press the down arrow key
|
Total Hit (1910) |
Drop-down combo boxes by default drop down when you press the F4 key. However, not many users know this, and you can make a combo box easier to use by making it drop down in response to the down arrow key instead.
|
Rating
 |
|
 |
Change the drop-down width of a Combo Box
|
Total Hit (2130) |
This tip shows you how to get and set the width of the drop down portion of a combo box. It also includes code to automatically set the drop down width based on the contents of a combo box by measuring the size of the text in each combo box item.
|
Rating
 |
|
 |
Get System Display Fonts and Non-Client Area Sizes
|
Total Hit (2773) |
The Non-Client area of a window is defined as the area you don't draw on; i.e. the window border, caption, menu bar and scroll bars. Whilst it is easy to get the colours that Windows uses to display these items (the VB enumeration SystemColorConstants supplies all the OLE_COLOR versions of these col
....Read More |
Rating
 |
|
 |
Using PSAPI to get a complete task list and memory usage.
|
Total Hit (4046) |
PSAPI.DLL is a DLL provided for NT/2000/XP systems which greatly simplifies the job of getting task list and memory usage information. The information is also available in the dyamic data section of the registry, but the format is fairly obstructive and it is a considerable task to extract it progra
....Read More |
Rating
 |
|
 |
Search for values in a FlexGrid control and sort it by columns
|
Total Hit (2478) |
To search for values, simply loop through the grid looking for the target value. Use the TopRow property to ensure that the row is visible after you find it.
To sort by columns, use the MouseRow property to see if the user clicked the control's column header. Use MouseCol to see which column was
....Read More |
Rating
 |
|
 |
Tutorial - Image List Control Introduction
|
Total Hit (2303) |
The Image List control allows you to add images to your program, which you can use in the other Common Controls (Toolbar, TreeView, ListView etc). To add the ImageList control to your VB project, click Project|Components, and check the box next to Microsoft Windows Common Controls x.x where x is the
....Read More |
Rating
 |
|