Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB controls does not repaint

Status
Not open for further replies.

vbtest5

IS-IT--Management
Nov 16, 2002
37
0
0
IN
Hi,

I have an MDI main menu. I call a vb form "XX" from it. From that VB form "XX", I call another modal form. When when the user closes the modal form and comes back to the "XX" form, the text boxes on the 'XX", which gets under the modal form, does not repaint itself unless I switch to another application and come back again. This means all text boxes and combo appear with grey background. Why does this happen?

Regards,
V.
 
Try putting a DoEvents in the line after the call to the modal form:

XX.Show vbModal

DoEvents



I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top