Home All Groups Group Topic Archive Search About

Create UserControl ??

Author
6 Apr 2005 1:21 PM
Fia
Hi
I have tried to create my own combobox, with properties and methods. But
when I use it in a Form and try to use the KeyPress Event for the control in
the Form, nothing happens. Do I have to do anything to make the KeyPress
Event work for the control, I thought it inherited the event.

Fia

Author
6 Apr 2005 4:26 PM
Herfried K. Wagner [MVP]
"Fia" <fiao***@telia.com> schrieb:
> I have tried to create my own combobox, with properties and methods. But
> when I use it in a Form and try to use the KeyPress Event for the control
> in
> the Form, nothing happens. Do I have to do anything to make the KeyPress
> Event work for the control, I thought it inherited the event.

Please avoid multiposts (posting the same message to more than one group
separately).  Instead, either choose the group which is most appropriate or
make an X-post to groups which are related to the topic.  (The other
"instance" of the OP's post has been posted to
microsoft.public.dotnet.languages.vb.controls.)

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
7 Apr 2005 8:55 PM
Chris Murphy via DotNetMonster.com
Even though you've inheirited the event in your control, you still have to
handle the event.

--
Message posted via http://www.dotnetmonster.com