Help with Keydown on tabControl

  • Thread starter Thread starter Keith Smith
  • Start date Start date
K

Keith Smith

My layout is like this...

tabControl1 contains...
....tabControl2 which contains...
.......GroupBox1 which contains...
..........comboBox1.


At first there was no tabControl2, but when I rearranged to the above format
the KeyDown event on my comboBox quit working. Is there something I am
missing??
 
At first there was no tabControl2, but when I rearranged to the above
format the KeyDown event on my comboBox quit working. Is there something
I am missing??

I figured it out.

For those interested here was the solution...

I had mistakenly (as I imagine some of you may be doing now) been putting
additional constructor code in the "generated" portion of the code instead
of adding constructor code after the InitializeComponent() method was
called. And when I moved my control to another tabControl aparently the
generated code was altered because my KeyDown event handler code was no
longer there.
 

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