dcsimg
 

Editable FlexGrid/Grid Control in VB4/5/6

Monday Oct 13th 2003 by Atakan Devrim Pakkan

This code shows how to use a TextBox control with a Grid.OCX (VB4) or a MSFlexGrid.OCX (VB5/6) control to make an editable grid control. It also demonstrates how to copy the selected Cells to the ClipBoard. (Originally posted May 7, 1999.)

Editable FlexGrid/Grid Control in VB4/5/6

Overview

This code shows how to use a TextBox control with a Grid.OCX (VB4) or a MSFlexGrid.OCX (VB5/6) control to make an editable grid control. It also demonstrates how to copy the selected Cells to the ClipBoard.

Screen Shot

The code works by having a hidden textbox (text1) on the same form as the Grid Control and positioning it over the relevant cell when editing is to occur. The code should work with the standard GRID.OCX control that came with VB4 as well as the MSFlexGrid control supplied with VB5/6. The code has comments to show where FlexGrid only code could be applied.


Download Zipped Project File (3k)

Home
Mobile Site | Full Site
Copyright 2018 © QuinStreet Inc. All Rights Reserved