Cursor "stuck" In Databound Control/Caching?

  • Thread starter Thread starter Sam Kuehn
  • Start date Start date
S

Sam Kuehn

I am having a strange issue and cannot solve it. Basically, I have a form
that edits information in a database. This form has many different controls
that are bound to a business object. When I first load the form to edit
the info everything works properly. The process of loading the object also
loads the object into cache (Isolated storage using Enterprise Library 2.0
caching application block). If I load the form again and attempt to edit
a field (say notes a textbox) my cursor gets "stuck" in the text box and
I cannot click on any other control in the form. However I can close the
form with the X in the upper right corner and the keys still function properly
(Enter saves the object and Esc closes the form). I have looked the stack
trace but it is giving me nothing. I have no idea where to begin. Has anyone
seen something similar or have any ideas what it might be? Any ideas how
I can go about getting some info to solve the problem?
 
Hi Sam,

This usually happens when the bound business object throws an exception in
the setter of the property bound to the control where the input caret gets
"stuck".
If you use custom property descriptors, I'd look for the problem there first
of all, but as it seems it's not the case, carefully examine the business
object for any unexpected exceptions.
 
Thanks Dmytro,
You were correct it was an unexpected exception that I was not catching.

Hello Dmytro Lapshyn [MVP],
 
Back
Top