Is it possible to override the Form's CreateParams method/function from a C# component?

208 views Asked by At

I am trying to apply a dropshadow for the bordeless winform from a component by overriding its CreateParams function but I'm getting an exception "no suitable method found to override" within the component.

How best can I apply a borderless WinForm's dropshadow from a component or is it possible to do so?

I can apply a dropshadow within the form itself but creating a component will make it easy to reuse the code.

I am trying to achieve this in winform using c#.

0

There are 0 answers