im creating it by dropping it on a form.

im trying to get the panel's dc yes, but changing the code didnt work.

the error is "Control '' has no parent window" when i add it to the form