|
-
Jul 10th, 2008, 09:26 PM
#1
-
Jul 10th, 2008, 09:36 PM
#2
Re: detecting CTRL+A in a user control?
You'd need to handle the KeyDown of each child control, probably all with the one method.
CSharp Code:
if (e.Control && e.KeyCode == Keys.A)
-
Jul 11th, 2008, 12:46 PM
#3
Re: detecting CTRL+A in a user control?
hey thanks
I'm trying to use this on a list box to select all items
I'm kind of confused. After detecting CTRL+A i select all items in a listbox and then set e.Handled to true.... but if there is an item that starts with "A" in the listbox, it deselects everything and then only select the first item that starts with A

shouldnt e.handled = true stop it from selecting the item whose text starts with 'A' ?
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Jul 11th, 2008, 03:05 PM
#4
Re: detecting CTRL+A in a user control?
Is the KeyDown event being fired twice?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|