Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm Controls / December 2004

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ralph Krausse - 13 Nov 2004 12:46 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.