Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 22nd, 2006, 08:51 AM
Authorized User
 
Join Date: Apr 2005
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Default Copy and Pasting

Hi,

I have a MSHFlexGrid, but it is currently not possible for the user to copy of paste data into the grid. The right click mouse button does not bring up the menu. Any ideas how to solve this?
 
Old March 8th, 2006, 09:46 AM
Authorized User
 
Join Date: Mar 2006
Posts: 80
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You may create you own Menu in VB IDE MenuEditor (named e.g. mnuPopup) with Submenu (Cut, Copy, Paste, ect.), and type this code in MouseUp Event:

Event MSFlexGrid_MouseUp (Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbrightButton Then
  PopupMenu mnuPopup
End If
End Sub

Peko






Similar Threads
Thread Thread Starter Forum Replies Last Post
pasting data from clipboard rahesh Visual Basic 2005 Basics 0 May 23rd, 2008 12:40 PM
Macro for copy pasting without opening the source Umasriram2 Excel VBA 6 April 9th, 2008 02:27 AM
Pasting into spreadsheets IainAL VB How-To 0 April 23rd, 2007 04:33 AM
Copieng and pasting with VBA vorax187 Access VBA 2 October 13th, 2005 11:58 AM
Pasting Data into a webform dkb General .NET 2 July 4th, 2004 04:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.