Got focus event triggers lost focus event?

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
 
G

Guest

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.
 

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

Top