在运行时更改Windows窗体的背景 [英] Changing Background of windows form at runtime

查看:100
本文介绍了在运行时更改Windows窗体的背景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!

在C#.Net Windows应用程序中,我想给用户一个规定,以便在运行时更改Main窗体的背景...

当然,它还应该保存用户指定的新背景,并在下次打开应用程序时将其上传回去.

我的主要形式是MDI父母.

你能建议我任何技巧吗?

请:)谢谢:)

Hi!

In C#.Net Windows application, I want to give a provision to the user to change the background of the Main form at runtime...

And of course it should also save the new background given by the user and upload it back when he opens the application next time.

My main form is an MDI parent.

Could you suggest me any technique for this?

Please :) Thanks :)

推荐答案

看看:
在MDI客户端上获取句柄" [
Have a look at:
Getting a "Handle" on the MDI Client[^]


您在这里谈论的是保存用户偏好设置,背景颜色是一种偏好设置,您需要将这些信息存储在XML文件或数据库等位置.
You are talking here about saving the user preferences, the color of the background is a preference, you need to store those information some where like an XML file for example or in the database.


这篇关于在运行时更改Windows窗体的背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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