Solved

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

Posted on 2007-04-07
4
245 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

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 …
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

759 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

21 Experts available now in Live!

Get 1:1 Help Now