Drag and Drop controls into Container Controls

Forms and Controls

Version Compatibility: Visual Basic 6

More information:
This demo shows you how to drag and drop a control into a container control such as a frame. The demo has two frames in a control aray, a text box and a tab strip. Hold the shift button down to drag the controls around the form. Drop the text box and tabstrip into a frame. To prove that the controls are in the frame, drag the frame around the form. The text box and tabs stay within the frame.

The Only thing that needs modified is the Object name in the code that you paste into the mousedown and dragdrop events. It should work on as many controls as you add, arrays or not.

I like every other programmer enjoy hearing from others that have checked out my code. Good or bad send me your comments at millerf@pa.net or check out my other code at Customized Software..

Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

Download dragobjx.zip