Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Visual Studio 2005 For discussing Visual Studio 2005. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2005 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
  #1 (permalink)  
Old January 4th, 2007, 08:26 AM
Registered User
 
Join Date: Jan 2007
Location: Trichy, TamilNadu, India.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to buvana
Default user control Key Down

I am creating a user control in VB.NET for a windows form. I want to handle the Keydown and Keyup events for the user control within the control. I have tried caoturing events for the control and on the form but neither of them seem to be firing when I press a key. So if I have a user control on a form and I press the key. Where should I expect to see the Keydown event fire?


V.Buvaneswaree
  #2 (permalink)  
Old January 7th, 2007, 06:15 PM
Registered User
 
Join Date: Jan 2007
Location: Greenock, Renfrewshire, United Kingdom.
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to Pomegranete
Default

If you double-click the user control, and get faced with the coding, go to the "Private sub......" section, click there, somewhere, and up at the top right, you can pick from the event list. Keydown and Keyup are both there.

Pomegranete


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add Windows User control in Web User Control agarwalvidhu C# 0 March 30th, 2006 01:17 AM
Help! Custom Server Control using User Control diehard ASP.NET 1.0 and 1.1 Professional 2 January 4th, 2006 12:33 PM
User Control: Tab key does not work alhad VB.NET 2002/2003 Basics 0 November 3rd, 2005 03:20 AM
key-sensitive ListBox control bokac C# 1 January 29th, 2004 09:04 AM





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