Got focus event triggers lost focus event?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All,

I have dynamically created a textbox control and dynamically assigned a lost
focus event to the control. When the cursor is placed in the control, the
lost focus event is fired. Is there a way I can prevent this from happening?
I am using C# with the latest version of the compact framework.

I have compared what the designer creates versus what I wrote and everything
looks the same. I have also searched this forum and google for help - so
please forgive me if this has already been covered.

Thank you!
Paula
 
I figured it out - I was using the same event for multiple controls - I just
needed to code around it. The lost focus wasn't actually being called on the
got focus.
 
Back
Top