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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disappearing combo boxes

Status
Not open for further replies.

masonf

IS-IT--Management
May 28, 2002
17
US
I hope I can explain this in a way that makes sense to everyone.

I have a child form inside an mdi form that contains a bunch of combo boxes, which had replaced data combos. I replaced the data combos because I needed to populate items from a database but also add items under certain criteria, which proved unfeasible with data combos.

I have a search form that helps select which data is to be loaded into the controls of the form, and on occasion some of these combo boxes (not all of them) disappear when the search form closes. I thought initially that this was being caused by the form not refreshing, so I tried doing an explicit refresh of the form, the controls themselves, and setting the autoredraw property to true on the form. I have also tried explictly setting the visible property to true, but to no avail. What gets me is that the problem is intermittent. Sometimes it happens and sometimes it doesn't, and the times that this happens, it seems only a random group of these controls disappear and some stay put.

Now let me add that there is a tabstrip (not the SSTab, but the other one) and we are using frames to contain the controls and display whichever one is necessary, based on which tab is chosen. I have tried forcing a refresh on each of the frames, but it doesn't make any difference.
Any ideas would be greatly appreciated. Thanks
 
I think I figured it out...

The form's "ClipControls" property was set to false and setting it to true appears to fix the problem.

See microsoft knowledge base article 194908 for details
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top