Create UserControl ??

  • Thread starter Thread starter Fia
  • Start date Start date
F

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
 
Fia said:
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.)
 
Even though you've inheirited the event in your control, you still have to
handle the event.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top