Usercontrol & SetParent() function
I created a new user control that has a similar look & feel to the properties frame in the VB6 IDE. Its basically a flexgrid with a few hidden textboxes & listboxes. I have everything working great, but I have one last glitch:
In order to make a hidden listbox "pop out" of the control, I set the listbox's parent to the form that the user control is on. This works great, but it has one undesireable side affect- the listbox takes on the PARENT FORM's BACKCOLOR! Even explicitly setting the listbox's backcolor to vbWhite or whatever will not change the listbox color. If the form is buttonface, green, or purple, so is the listbox. If anyone has an idea on this one, I'd really appreciate it. I thought that an alternative might be this:
Put the listbox on a picturebox, and set the picturebox parent to be the main form. That way the list would just be along for the ride, but I would probably need to do a bunch of "fudging" to control the picturebox size.
Thanks, Mike

