Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB.NET
|
VB.NET General VB.NET discussions for issues that don't fall into other VB.NET forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 16th, 2007, 03:31 AM
Registered User
 
Join Date: Dec 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Shortcut keys don't work at runtime

Hi guys (and ladies, let's keep this gender-neutral),

I've hit a new and interesting problem with my one VB.net 2005 application.
When the application is running, all my Windows-level shortcut keys don't work. This means that Ctrl-C, Ctrl-V, Ctrl-Z and all the other useful uniform shortcuts don't work at all on the application.

It is still possible for me to select text with the mouse and then right-click context-select 'Copy' and 'Paste', but that takes the speed out of it all.

I've checked for background threads and anything that may be trapping keyboard events, but there really isn't anything I can see that's causing this.

This is an MDI application, but the problem's occuring on both the MDI Parent and child forms.

Your assistance is greatly appreciated!

There are 10 types of people in this world; those who understand binary, and those who don't
 
Old March 16th, 2007, 06:56 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hi there..

did you check that the forms doesn't have keypreview on true?

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
 
Old March 16th, 2007, 06:58 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Gonzalo is right. If your form is capturing the key preview, this will interfere with your ability to use system shortcuts.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
 
Old March 16th, 2007, 07:03 AM
Registered User
 
Join Date: Dec 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I checked all the forms - KeyPreview is set to False on all of them.

None of why this is happening seems to make any sense!



There are 10 types of people in this world; those who understand binary, and those who don't
 
Old March 16th, 2007, 07:16 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

let's try 2 ideas to see what's happening..

first compile the project, close VS and run the exe alone...

second did you try it on another PC?? maybe something else is making the shortcuts not work..

Are you trying the shortcuts on textboxes or somewhere else????


HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
 
Old March 16th, 2007, 07:18 AM
Registered User
 
Join Date: Dec 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Gbianchi,

The program in question is currently in use in a live environment (about 20 people using it).
This problem's been around since mid-development, so it's happening when compiled, and on all machines.

Thanks!

There are 10 types of people in this world; those who understand binary, and those who don't
 
Old March 16th, 2007, 07:29 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

them I'm clueless.. there should be somewhere in your code that catch the control key and prevent it for being use with other keys...

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
 
Old March 16th, 2007, 07:34 AM
Registered User
 
Join Date: Dec 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Nothing I can see is handling any key events anywhere (those that were I've totally disabled).

I'm actually so desperate I'd be happy if you were able to go through my source and maybe pick it up (I assume it must be something blindingly obvious)

Cheers,

   Stuart

There are 10 types of people in this world; those who understand binary, and those who don't
 
Old March 16th, 2007, 07:38 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

mmm.. i have some time now.. the problem is that maybe you will send not enough code to see if it's working or not..

well.. if you want to send something do it to my hotmail account...

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
 
Old March 16th, 2007, 02:25 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

BTW, Stu,

“Guys” [u]is</u> gender-neutral when used in a generic context, as is “he,” “man,” “him,” “his,” “spokesman,” “chairman,” (ad nauseum, ad infinitim).

It is only women with irritatingly thin skin, and those who are easily bullied in academia who have given us ridiculous phrases like “he or she,” and arbitrary insertions of female pronouns here and there in texts.

(After I solve this issue I am going to go hold the ocean tide back with my 2 bare hands.)





Similar Threads
Thread Thread Starter Forum Replies Last Post
shortcut keys and pop up dipankar.aich Windows Presentation Foundation 0 April 5th, 2007 07:43 AM
use Shortcut keys slokhande C# 1 July 21st, 2006 09:45 AM
Shortcut keys! Dharam80 Access 2 August 18th, 2005 08:23 AM
making Shortcut keys melvik C# 6 April 9th, 2005 11:48 AM
Shortcut keys DARSIN General .NET 1 November 22nd, 2004 10:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.