PC Review


Reply
Thread Tools Rate Thread

How can I make a control show inherited events from System.Windows.Forms.Control

 
 
Ralph Krausse
Guest
Posts: n/a
 
      13th Nov 2004
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
 
Reply With Quote
 
 
 
 
RBischoff
Guest
Posts: n/a
 
      13th Nov 2004
Hello Ralph,

I am using VS.NET 03, and I found the KeyPress event for the tabcontrol via VS.NET, but not the tabpage(s).


Here is the code it generated for me,

private void tabControl1_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
{

}

I guess the tabpage KeyPress isn't supported via VS.NET.

Best of luck!
RBischoff , your C# ally

RK> I dropped a tab control on my form and wanted to create an event to
RK> capture a Keypress. Looking at the events, I couldn't find a
RK> KeyPress event, only to find it in my form. So I created it there
RK> and then manually moved it to hook into the tab control. It all
RK> works fine but I was wondering if there is a way that I could make
RK> the tab control properties show the inherited events so that I could
RK> just double click and get my event, not go thru the pain of double
RK> clicking on the form and then moving the code.
RK>
RK> TIA
RK> Ralph

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
about Show Method in Control Class under System.Windows.Forms (C#) =?Utf-8?B?QWxiZXJ0IEZ1?= Microsoft C# .NET 10 23rd Feb 2007 07:33 AM
Why is my inherited window forms control deleted tony Microsoft Dot NET Framework 1 17th Mar 2006 02:54 PM
Why is my inherited window forms control deleted Tony Johansson Microsoft C# .NET 0 15th Mar 2006 05:42 PM
Re: How do I get an inherited control to show up in the Designer Toolb Mike Labosh Microsoft VB .NET 1 22nd Sep 2004 08:11 PM
Order that events are fired on System.Windows.Forms.Control class Jay Douglas Microsoft C# .NET 1 4th Apr 2004 07:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:07 PM.