Hmm, normally, I just cut all those controls out and delete the GroupBox. But, it's not easy all the time, so me just wondering if there was a way to do it without touching the child controls.
Remove the relationship? Or other otions?
Eternal Newbie
30
Newbie Poster
Recommended Answers
Jump to PostI'm pretty sure the controls will be deleted with their parent. One option you have is to remove the controls from the parent control and place it in a different one or the form itself
For Each c As Control in GroupBox1.Controls Me.Controls.Add(c) Next
You may …
Jump to PostNot that I'm aware of.
Jump to PostIf you are doing it at design time then just select all child controls, cut, then delete the container, then paste the previously cut controls back on the form.
All 12 Replies
tinstaafl
1,176
Posting Maven
Eternal Newbie
30
Newbie Poster
tinstaafl
1,176
Posting Maven
Reverend Jim
4,695
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
Eternal Newbie
30
Newbie Poster
Reverend Jim
4,695
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
Eternal Newbie
30
Newbie Poster
|-|x
126
Junior Poster in Training
Eternal Newbie
30
Newbie Poster
Reverend Jim
4,695
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
G_Waddell
131
Posting Whiz in Training
Eternal Newbie
30
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.