VB 6.0 Cut, Copy, Paste, Question - TechRepublic
General discussion
October 11, 2000 at 02:29 AM
sgandenberger

VB 6.0 Cut, Copy, Paste, Question

by sgandenberger . Updated 25 years, 7 months ago

I am using MSFlexGrid to show data that is being brought in by the serial port.
i would like to copy and paste within MSFlexGrid . At the moment i can copy one cell and paste into one cell. i would like to be able to copy a multiple of cells, andpaste them in the flexgrid.
i tried using
Clipboard.clear
Clipboard.settext screen.activecontrol.seltext

and then for paste
screden.activecontrol.seltext=
clipboard.gettext()
this does not work
i am instead using
clipboard.clear
clipboard.settext MSFlexGrid.text
for paste
if len(clipboard.gettext) then msflexgrid.text = clipboard.gettext
this allows me to do only one cell of the grid.
How would i do multiple?

This discussion is locked

All Comments