Solved

CTRL+V HOTKEY AND RICHTEXTBOX

Posted on 1998-12-22
4
437 Views
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.
0
Comment
Question by:jason_osborne
  • 3
4 Comments
 
LVL 12

Accepted Solution

by:
mark2150 earned 20 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.

M

0
 
LVL 12

Expert Comment

by:mark2150
ID: 1451952
P.S.

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.

M

0
 

Author Comment

by:jason_osborne
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.
0
 
LVL 12

Expert Comment

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

M

0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB6 / DAO 3.6 / run time error: Couldn't find installable ISAM 7 102
Macro which automatically sends attachment to Outlook 14 77
MsgBox 2 59
using Access 8 75
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

808 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