如何在asp.net中基于Windows的applctn中设置Masterpage类型页面? [英] How to set Masterpage type page in Windows Based applctn in asp.net?

查看:87
本文介绍了如何在asp.net中基于Windows的applctn中设置Masterpage类型页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我们在网站中设置母版页以便在网页的每个页面上调用该页面上的设计或主题时,我们如何在WINDOWS应用程序中设置母版页以便在每种形式的应用程序中获取设计或主题??

请帮帮我...

As we set masterpage in websites so that the design or theme on that page is called on every page of the website aslike this how can we set Master Page in WINDOWS APPLICATION so to get the design or theme in every form of the application??
please help me out...

推荐答案

要在winform中模拟母版页,你可以创建一个基本表格,创建一个继承自System.windows.Forms的类,或者只是向项目中添加一个新表单,添加公共控件,然后创建任何其他表单,添加继承表单选择创建的基本表单,这应该有效。



参考:

http:// www。 akadia.com/services/dotnet_inherited_forms.html [ ^ ]

http://stackoverflow.com/questions/17803169/winform-application-master-form [ ^ ]
To simulate master-pages in winform you can create a base form, create either a class that inherits from System.windows.Forms or simply add a new form to your project, add the common controls and then create any other form adding an "Inherited Form" select the base form created and that should work.

Refer:
http://www.akadia.com/services/dotnet_inherited_forms.html[^]
http://stackoverflow.com/questions/17803169/winform-application-master-form[^]


这篇关于如何在asp.net中基于Windows的applctn中设置Masterpage类型页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆