I want to Apply a theme to all my forms in c#. how can i do it?
i have too many forms. and they should all have the same style( orange background and a logo on top right) It is very time consuming. I would do it only once and it apply to all my forms.
For ASP.NET WEBForms
You can use MasterPage
and than add Content Pages
inside it.
Add a Master Page
in your project do all the designing in this back color logo and menus. Than add Content Pages
which will have this MasterPage
. So all your forms will have the same theme.
Solution Explorer
. Add New Item
. Master Page
from the popup which appears. For details see https://msdn.microsoft.com/en-us/library/wtxbf3hh(v=vs.140).aspx
For Windows Forms
You can use MDI Parent
.
See this on how to use MDI Parent
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.