By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,949 Members | 2,043 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,949 IT Pros & Developers. It's quick & easy.

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

P: n/a
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

Apr 25 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Nevermind I fixed the issue by databinding the DB to my usercontrol

Apr 25 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.