473,461 Members | 1,371 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

KeyPreview

Lou
I have an activeX control in my .NET app that steels the "Delete" key, How
can I Steel the key first. I tried the
KeyPreview but that doesn't get the key first.
-Louie
Nov 21 '05 #1
1 2392
you can use a messagefilter to intercept all window messages

see this example code http://www.freevbcode.com/ShowCode.Asp?ID=5635

in this situation i used this technique to pre process messages that were
otherwise send to the webbrowser control , however you can use this aproach
for anny control

regards

Michel Posseth [MCP]

"Lou" <lo********@comcast.net> wrote in message
news:ux**************@TK2MSFTNGP12.phx.gbl...
I have an activeX control in my .NET app that steels the "Delete" key, How
can I Steel the key first. I tried the
KeyPreview but that doesn't get the key first.
-Louie

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Chuck | last post by:
I have KeyPreview set to true for my form. How do I ucase all of my keyboard input at this level?
2
by: Carl Tribble | last post by:
I am using KeyPreview on the form to trap Function-keys. My form includes a datagrid. I am using the Form.KeyDown event to trap the keys and all works fine unless the datagrid is showing one or...
1
by: Rene | last post by:
Hi, I am running is some problems with the KeyPreview and KeyPress events. The KeyPress event is only triggered when there this an focusable control on the form. When all controls are disabled...
3
by: Vadim Rapp | last post by:
Hi: On my form, I have textbox and combo box. Form's KeyPreview = True. It does work for the textbox, but not for the combo. I.e. Private Sub Form1_KeyPress(ByVal sender As Object, ByVal e As...
13
by: HABJAN ®iga | last post by:
I'am using form's keypreview property & keydown (on form) to look for hotkeys (alt+?) Everything works fine, except when i have focus on combobox. Then the event on form isn't raised. Can...
9
by: Charles Law | last post by:
I have asked a similar question to this before, but have not found a satisfactory answer yet, so I thought I would ask it in another way. KeyPreview, for a form, handily allows keys to be...
2
by: RvGrah | last post by:
I have always found the form-level KeyPreview feature near useless, as there was a bug that allowed ComboBoxes to ignore it. In VS 2005 I've confirmed that it now woks in Combos. Is there anything...
1
by: Ryan Liu | last post by:
Hi, I know Form has a KeyPreview property, is there a similar property that can be used to control mouse event that is only processed at the from level, not the controls on it? I am asking...
2
by: bakpao | last post by:
I want to have a form that accepts keypresses. The controls other than the form should not receive any of the user input. I have implemented it using IMessageFilter but now just now I discovered...
1
by: dragonjim | last post by:
In vb.net, if I want to detect a keypress, I must first set keypreview to true on the form. In VB6, it was pretty simple, but in vb.net, I can't find where keypreview gets set. How do I do it?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.