UI Form does not update textboxes when the debugger is not attached

  • Thread starter Thread starter amurra06
  • Start date Start date
A

amurra06

I have a form that contains a tabpage and in that tabpage is a
usercontrol that conatins a bunch of textboxes. I have arranged these
textboxes in groupboxes to organize them better. What I do is to enter
a number that corresponds to a bunch of data in a DB. I am able to get
that data and assign it to the right textboxes, ex. mFirstName.Text =
customer[0].FirstName; The problem is that the textboxes do not
display this updated information when I execute the application without
the debugger attached. As soon as I execute the application in Visual
Studio with the debugger, my textboxes will display the correct
information. Is there any reason why the debugger gets my textboxes to
refresh?

I orginally thought the problem had to do with threads, but Forms use
STAThread, which are single threaded applications so cross thread
communication is not the problem. I also tried calling the refresh,
invalidate, and update methods for my usercontrol and parentcontrols,
but that still did not work. Anyone got any ideas?

Thanks

Andy
 
Back
Top