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.
 
Back
Top