Solved

TabControl Problem: Ctrl+C Closes TabPage and Doesn't Copy Text To Clipboard

Posted on 2007-04-07
4
248 Views
Last Modified: 2010-04-14
I'm having a problem with TabControls and using Ctrl+C to copy.  My TabPages contain TextBoxes and I want users to be able to copy and paste to and from each of those textboxes.  Unfortunately, when I press Ctrl+C it closes the current tab and doesn't copy anything to the clipboard. Any ideas how to prevent ctrl+c from closing a TabPage?
0
Comment
Question by:TaylorPhillips
  • 2
4 Comments
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 250 total points
ID: 18870481
Hi TaylorPhillips,

Can you give us some more information about your setup?  I'm not seeing this problem with VB.Net 2005 Express.

Do you have any third party controls?

Do you have any code in any of the KeyXXX events or are you trapping keys in any other way?

Try making a new project with JUST a TabControl and some TextBoxes on the TabPages.  Does the problem persist?  This can help us narrow down the problem in your original app.
0
 
LVL 17

Expert Comment

by:CSecurity
ID: 18871621
hello
your information isn't complete but you should check shortkey(s) in your program.
if you give your project to us (experts), i think you'll give your answer as soon as possible.
Regards!
0
 
LVL 85

Expert Comment

by:Mike Tomlinson
ID: 18871660
You can upload projects here if need be:
http://www.ee-stuff.com/
0
 

Author Comment

by:TaylorPhillips
ID: 18872386
I sadly inform you that I had a context menu strip with hotkeys enabled.  As I'm sure you can guess, one of those was ctrl+c which closed the current tab ;(....  I never realized that CMS hotkeys worked while the menu was not visible.  Thanks!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…

856 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