Chris
Chris

Reputation: 57

c# stop controls being added to containers through designer

I am currently working on a program that uses multiple panels to split up the various fields on the Form. They cover 100% of the form's viewable area.

However, there are items I want to add that are above the structure of the Form, so that they will not be contained by a panel. How can I add a control to an area of the form without it being added to a panel that is occupying the same area?

To clarify, when I drag a TextBox or other control over a panel, it gets automatically added to it's list of controls, which I do not want

Upvotes: 0

Views: 69

Answers (1)

SLaks
SLaks

Reputation: 887479

Select the form, then double-click the control in the toolbox. This will add it to the selected container.

You will probably then want to set Dock to Top, and perhaps send to back.

Upvotes: 1

Related Questions