开发者

How to emulate skins (from ASP.NET) in windows forms

开发者 https://www.devze.com 2023-03-02 17:53 出处:网络
Here is the problem. i am developing a windows forms application in c# that has a lot of forms that include datagridviews, and i want to all those gridviews have the same look, same background color,

Here is the problem. i am developing a windows forms application in c# that has a lot of forms that include datagridviews, and i want to all those gridviews have the same look, same background color, same header alignment, and a lot of ot开发者_StackOverflow中文版her properties. in ASP.NET it is easy to do with skins, but how can i do this in windows forms?


Create a user control. Assign the properties whatever you want and then inherit that user control in the forms. Hope this will fix your problem


I think the best would be to use 3rd party cntrols like devexpress. They have rich skin support and skin editor

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号