Posted on 1998-12-22
Medium Priority
Last Modified: 2010-05-03
I am creating a text editor in VB6 that uses a richtextbox.  The problem is that I have an edit menu with cut, copy and paste and I want to assign the standard Windows hotkeys (ctrl+x, ctrl+c & ctrl+v) but ctrl+v for paste, performs the action twice.

I assume what is happening here is that the first action is the richtextbox action and the second is my action.  I can't find a way around this.
Question by:jason_osborne
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
LVL 12

Accepted Solution

mark2150 earned 40 total points
ID: 1451951
*YOU* don't need to code for these events. They happen AUTOMATICALLY as part of windows. Turn off your code and things will smooth out.


LVL 12

Expert Comment

ID: 1451952

If you need code, I have a complete form that allows editing/printing of RTB. email me direct at Mark_Lambert@ntsc.navy.mil and I'll send it to you.



Author Comment

ID: 1451953
I know that windows does the ctrl+v thing but I would like the hotkey to be in the menu next to the paste command.
LVL 12

Expert Comment

ID: 1451954
Just put it on the menu but don't make *CODE* for it!



Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question