Problems adding dynamically a custon-control to a panel
Windows Forms
1
Posts
1
Posters
0
Views
1
Watching
-
Hi! I have the following situation: A panel called "BayContainer" some custom-controls from type "Bay" should be filled by file-drag&drop. So i created a method called "insert", that gets the position, the filename and the "BayContainer.Controls"-Object, where the newly created custom-control should be placed, as parameters When dropping a file into the panel the position is being calculated, the control is created, size and position are set. The first file works fine, but the 2nd control is not being painted (allthough it seems to be there because it received events, that are being connected to the new control). Any ideas, why the 2nd, 3rd, etc... control do not appear inside the panel? Thanx for help! J.