PDA

Click to See Complete Forum and Search --> : Container Controls


clarkgriswald
Mar 23rd, 2004, 12:12 PM
How do I get controls that get dropped into my ActiveX control to be children of a picturebox within the UserControl. For example I have a PictureBox control that is the same size as the UserControl and if a user drops a command button or label (controls without handles) onto my activeX, I want the picturebox to be the parent control, NOT the UserControl (trying to make a viewport)

manavo11
Mar 24th, 2004, 03:30 PM
The SetParent API?

clarkgriswald
Mar 24th, 2004, 10:25 PM
That will only work for controls with handles (.hwnd)