What is the ParentContainer property?


Author
Message
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
I'm attempting to write some code that will add controls to a form dynamically at runtime and when I look at the Designer file to see what is generated by the designer, for the SF controls, the ParentContainer property is set. E.g.





' This code is in the designer.

myTextBox.ParentContainer = Me.





Now, what has me confused is that this is set even when the control is added to a container, like a flowlayoutcontainer or tablelayoutcontainer or panel, etc. What is this property and why is it set to the form?



(So I don't break anything tooo badly:blinkSmile
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search