Problems after adding Control dynamically on Panel

Posted by Thomas on Stack Overflow See other posts from Stack Overflow or by Thomas
Published on 2011-01-28T23:17:32Z Indexed on 2011/01/28 23:25 UTC
Read the original article Hit count: 212

Filed under:
|
|

Hello,

I have added an View List onto a Panel like that:

panelComponent.Controls.Add(viewListComponent);

Everthing works just fine. Mouse Events are handled, Repaint works. But one:

I cant dynamically move it around. If i change the control.Top Variablen it just sit there and nothing.

Its clued to the top left corner. Resizing the right and bottom line works just fine! I did it without dynamically adding and than no Problem.

Hope you can help.

Thomas

© Stack Overflow or respective owner

Related posts about c#

Related posts about control