Ahhhh. This is fun (if you are asking about doing this at runtime). You can actually do this... IF YOU DARE.
Basically, what you are really doing is changing the container for the control.
Each control has a container - usually the Form itself or a Frame (whose container is the form). But there are other container controls as well. For example, a Picture Box or various Tab controls.
So... for starters you can see the result of changing the container of a control thusly:
Code:
Set Text1.Container = Frame1
Of course, that is just the beginning - for example, it just places the control into the new container using the Top and Left properties relative to the new container. Now you need to write code that appropriately deals with dragging and positioning operations.
A simple test would be to set the dragmode property of the textbox to Automatic, and then place the above code in the Frame1_DragDrop event handler.
I am assuming VB6 here, by the way.
Have fun (if you can. This is going to be a lot of work.)
However... if you are asking about dragging and dropping 3 textboxes into a frame at the same time during design time, it can't really be done - as far as I know. You can move 3 textboxes from one container to another at the same time by selecting them, "cutting" them, and then pasting them into the new container, but I don't know of any way to drag and drop them.
Woody Z
http://www.learntoprogramnow.com