C#用XP看 [英] C# with XP look

查看:66
本文介绍了C#用XP看的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。

我是C#的新手。

我有一个用MS VisualStudio 2008编写的项目,C#。所以当我在同一台机器上执行

项目(Windows Forms Application)时,MSVS2008

安装了我获得的表单样式是XP,但是当我在机器上运行相同的exe时
没有安装这个的
我看起来风格老了。

有没有人知道是否可以让XP看起来在任何机器上,无论是否安装了MSVS2008,以及如何安装。

提前致谢。

解决方案

10月9日,10:52 * am,Wndr < some ... @ yahoo.comwrote:


大家好。

我是C#的新手。

我有一个用MS VisualStudio 2008编写的项目,C#。所以当我在同一台机器上执行

项目(Windows Forms Application)时,MSVS2008

安装了我获得的表单样式是XP,但是当我在机器上运行相同的exe时
没有安装这个的
我看起来风格老了。

有没有人知道是否可以让XP看起来在

任何机器,无论是否安装了MSVS2008,以及如何。

提前致谢。



调查EnableVisualStyles()......


但是如果你希望它在其他操作系统中看起来像XP风格/旧操作系统

比XP,我觉得很难..你可能需要在资源中包含所有的imanges

...

-Cnu


-Cnu


是的,EnableVisualStyles()是经典(但旧的)方式管理Windows

用户界面应首先学习,但在此UI上下文中的大局是现在所有关于使用Windows Presentation Foundation中的类
(WPF)。


" Wndr" < so ***** @ yahoo.comwrote in message

news:%2 **************** @ TK2MSFTNGP02.phx.gbl .. 。


大家好。

我是C#的新手。

我有一个用MS VisualStudio编写的项目2008年,C#。所以当我在同一台机器上执行

项目(Windows Forms Application)时,MSVS2008

安装了我得到的表单样式是XP,但是当我在机器上运行相同的exe时
没有安装这个的
我看起来风格老了。

有没有人知道是否可以让XP看起来

在任何机器上,无论是否安装了MSVS2008,以及如何安装。

提前致谢。


但是,XP可以使用WPF吗?


" Hillbilly" < so ****** @ somewhere.comwrote in message

news:eO ************* @ TK2MSFTNGP03.phx.gbl ...


是的,EnableVisualStyles()是管理
的经典(但旧)方式



Windows


用户界面应首先学习,但在这个上下文中的全局是



UI
< blockquote class =post_quotes>
现在所有关于使用Windows Presentation Foundation中的类

(WPF)。


Wndr ; < so ***** @ yahoo.comwrote in message

news:%2 **************** @ TK2MSFTNGP02.phx.gbl .. 。


大家好。

我是C#的新手。

我有一个用MS VisualStudio编写的项目2008年,C#。所以,当



MSVS2008
时,我在同一台机器上执行

项目(Windows Forms Application) blockquote class =post_quotes>


安装我得到的表单样式是XP,但是当我在机器上运行相同的exe

时没有这个安装我老样子。

有没有人知道是否可以在任何机器上使用XP看起来好像是
,无论是否是否安装了MSVS2008,以及如何安装。

提前致谢。



Hi guys.
I am newbie in C#.
I have a project written in MS VisualStudio 2008, C#. So when I execute the
project (Windows Forms Application) on the same machine when MSVS2008
installed the form style I get is XP, but when I run same exe on machine
that doesn''t have this installed I get old look style.
Does any one have an idea on if it''s possible to be able to have XP look on
any machine, regardless if MSVS2008 installed or not, and how.
Thanks in advance.

解决方案

On Oct 9, 10:52*am, "Wndr" <some...@yahoo.comwrote:

Hi guys.
I am newbie in C#.
I have a project written in MS VisualStudio 2008, C#. So when I execute the
project (Windows Forms Application) on the same machine when MSVS2008
installed the form style I get is XP, but when I run same exe on machine
that doesn''t have this installed I get old look style.
Does any one have an idea on if it''s possible to be able to have XP look on
any machine, regardless if MSVS2008 installed or not, and how.
Thanks in advance.

investigate on EnableVisualStyles() ...

However if you want it to be look like XP style in other OS / older OS
than XP, I think it is hard.. you may need to include all the imanges
in the resources...

-Cnu

-Cnu


Yes, EnableVisualStyles() is the classic (but old) way of managing a Windows
UI and should be learned first but the big picture in this context of the UI
is now all about using the classes in the Windows Presentation Foundation
(WPF).

"Wndr" <so*****@yahoo.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...

Hi guys.
I am newbie in C#.
I have a project written in MS VisualStudio 2008, C#. So when I execute
the project (Windows Forms Application) on the same machine when MSVS2008
installed the form style I get is XP, but when I run same exe on machine
that doesn''t have this installed I get old look style.
Does any one have an idea on if it''s possible to be able to have XP look
on any machine, regardless if MSVS2008 installed or not, and how.
Thanks in advance.


but, can XP use WPF?

"Hillbilly" <so******@somewhere.comwrote in message
news:eO*************@TK2MSFTNGP03.phx.gbl...

Yes, EnableVisualStyles() is the classic (but old) way of managing a

Windows

UI and should be learned first but the big picture in this context of the

UI

is now all about using the classes in the Windows Presentation Foundation
(WPF).

"Wndr" <so*****@yahoo.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...

Hi guys.
I am newbie in C#.
I have a project written in MS VisualStudio 2008, C#. So when I execute
the project (Windows Forms Application) on the same machine when

MSVS2008

installed the form style I get is XP, but when I run same exe on machine
that doesn''t have this installed I get old look style.
Does any one have an idea on if it''s possible to be able to have XP look
on any machine, regardless if MSVS2008 installed or not, and how.
Thanks in advance.



这篇关于C#用XP看的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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