I dropped a tab control on my form and wanted to create an event to
capture a Keypress. Looking at the events, I couldn't find a KeyPress
event, only to find it in my form. So I created it there and then
manually moved it to hook into the tab control. It all works fine but
I was wondering if there is a way that I could make the tab control
properties show the inherited events so that I could just double click
and get my event, not go thru the pain of double clicking on the form
and then moving the code.
TIA
Ralph
joeycalisay - 15 Nov 2004 07:09 GMT
I just looked at the tabcontrol and it has the inherited keypress event and
so is the onkeypress eventhandler
> I dropped a tab control on my form and wanted to create an event to
> capture a Keypress. Looking at the events, I couldn't find a KeyPress
[quoted text clipped - 7 lines]
> TIA
> Ralph
Bruce Wood - 15 Nov 2004 19:56 GMT
You seem to be having trouble with the Visual Studio IDE.
When I click on my TabControl and choose the events display in the
Properties window (the lightning bolt icon near the top), it shows all
events for a TabControl, including those inherited from Control, which
includes KeyPress. Double-clicking next to the KeyPress event for the
TabControl creates a new method and automatically hooks it into the
control.
Dave Hall - 30 Dec 2004 06:22 GMT
Are you using VS 2003 or 2005? I don't see any events display in the
properties window or any lightning bolt icon anywhere. What language are you
using? VB or C#?
Dave
> You seem to be having trouble with the Visual Studio IDE.
>
[quoted text clipped - 4 lines]
> TabControl creates a new method and automatically hooks it into the
> control.
Andrew Smith \(Infragistics\) - 19 Nov 2004 15:54 GMT
It sounds like you selected a tabpage and not the tabcontrol. The tabpage is
a derived panel and panel shadows and hides the key events.
> I dropped a tab control on my form and wanted to create an event to
> capture a Keypress. Looking at the events, I couldn't find a KeyPress
[quoted text clipped - 7 lines]
> TIA
> Ralph