• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 260
  • Last Modified:

Give an XP look for all controls on all Windows Operating Systems in CSharp DotNet.



I am developing a CSharp Dotnet Application using .NET framework v 1.1 . I need to give the application an XP look and this look should be maintained on any windows operating system( win 98/ME/2000/XP/2003).
 
0
Anisha
Asked:
Anisha
  • 2
  • 2
2 Solutions
 
TheAvengerCommented:
You need to make you custom controls, which are owner drawn and draw them manually. If you want your controls to be themes aware, you need to implement this as well. I would say that this is a huge task.
0
 
nullmindCommented:
I'm not sure if this works for .NET 1.1, but this article may be worth reading: http://www.codeproject.com/useritems/XP_theme.asp

You might also want to see about changing the manifest file to support theming: http://www.codeproject.com/dotnet/ManifestInjection.asp
0
 
TheAvengerCommented:
These solutions will work for Windows XP, but not for Windows 98/NT/2000
0
 
nullmindCommented:
I'm sorry, I did not notice that part of his request.

You may want to look into using GTK+ from .NET, or Swing inside Java. Both of these systems offer lightweight components that preserve Look And Feels.
0
 
vo1dCommented:
TheAvanger is right, you will have to make all the rendering by yourself.
you could derive all the controls you need and overriding the wndproc, in which you do all your painting on the wm_paint message.
if you wanna implement custom drawing for listviews and treeviews, it is a lot of more work because you will have to to react on wm_notify messages of each item(listviewitem or treeviewitem) and make all the rendering for it.
i hope you will have a good reason for that because it is a lot of work.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now