devxlogo

Tip Bank

Adding Popup Menus to Custom Controls

Shipping custom controls with their own set of popup menu items make the controls appear appropriately professional. They add ease of use, functionality and value to the control(s). Here’s how

Adding Items in List Boxes as Tooltips

This piece of code lets you display an item in a list box as that list box’s tooltip. Private Sub lstItems_MouseMove(Button As Integer, Shift As Integer, X As Single, Y

Making a Form Scrollable

This is one of the simplest, but most powerful, ways to make a form scrollable. This method automatically disables or enables scrollbars according to the size of the area in

Cut, Copy, Paste, and Undo For Textboxes

Many programmers use Visual Basic’s Clipboard object to perform Cutting, Copying, Pasting and Undoing code. For example, to copy some text from a textbox, programmers sometimes use the following code:

Determine Absolute Row Index

Often, properties and methods associated with grid controls don’t provide an absolute (relative to the actual first row and not the first displayed row) row index of current or selected