Article View: alt.pl.comp.lang.csharp
Article #22203Re: Jak dodać zdarzenie KeyDown do Panel
From: Maciej Rychter
Date: Mon, 06 Jun 2011 09:45
Date: Mon, 06 Jun 2011 09:45
24 lines
1907 bytes
1907 bytes
Witam,
no patrzę Reflectorem na Panel z nejmspejsa system.windows.forms i
wygląda, że jest tam takie zdarzenie jak KeyDown
[EditorBrowsable(EditorBrowsableState.Never), Browsable(false)]
public event KeyEventHandler KeyDown
{
add
{
base.KeyDown += value;
}
remove
{
base.KeyDown -= value;
}
}
problem w tym, że może ono nie być dostępne w propertisach w sensie w
desginerze viżualowym.
Jeżeli tam go nie ma to trzeba dodać z palucha w kodzie pewnie.
Pozdrawiam,
Maćko
Technical Details
Message-ID:
<28523cf1-ce13-4f33-a533-388e545ca2b3@d1g2000yqe.googlegroups.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!plix.pl!newsfeed1.plix.pl!goblin2!goblin1!goblin.stu.neva.ru!postnews.google.com!d1g2000yqe.googlegroups.com!not-for-mailReferences:
<01ebc3ac-0c03-4fab-b148-767902beaa84@j31g2000yqe.googlegroups.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!plix.pl!newsfeed1.plix.pl!goblin2!goblin1!goblin.stu.neva.ru!postnews.google.com!d1g2000yqe.googlegroups.com!not-for-mail From: Maciej Rychter <rychter.maciej@gmail.com> Newsgroups: alt.pl.comp.lang.csharp Subject: Re: Jak dodać zdarzenie KeyDown do Panel Date: Mon, 6 Jun 2011 02:45:52 -0700 (PDT) Organization: http://groups.google.com Lines: 25 Message-ID: <28523cf1-ce13-4f33-a533-388e545ca2b3@d1g2000yqe.googlegroups.com> References: <01ebc3ac-0c03-4fab-b148-767902beaa84@j31g2000yqe.googlegroups.com> NNTP-Posting-Host: 80.94.182.138 Mime-Version: 1.0 X-Trace: posting.google.com 1307353552 11081 127.0.0.1 (6 Jun 2011 09:45:52 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 6 Jun 2011 09:45:52 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d1g2000yqe.googlegroups.com; posting-host=80.94.182.138; posting-account=0LtQXAoAAABsec8yh6dn4H8zU73p878u User-Agent: G2/1.0 X-HTTP-Via: 1.1 webwasher (Webwasher 6.8.7.9979) X-Google-Web-Client: true X-Google-Header-Order: ASELNKCHRUV X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.71 Safari/534.24,gzip(gfe) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit