Solved

CTRL+V HOTKEY AND RICHTEXTBOX

Posted on 1998-12-22
4
427 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
Comment Utility
*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
Comment Utility
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
Comment Utility
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
Comment Utility
Just put it on the menu but don't make *CODE* for it!

M

0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now