473,795 Members | 2,826 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Applying WinXP visual themes in Win2K app....

All-
This is a bit 'out there,' but, here goes. I have copied the WinSxS folder from a WinXP box to my Win2K box. I would like to be able to apply XP control styles to my Win2K VB.NET apps. Given what I have copied into my WinSXS folder, would I be able to use a combination of assembly manifests and isolated Win32 assemblies to do this? According to MSDN, comctl32.dll, Version 6, which is bundled with WinXP, is not redistributable . My thinking is that if you take care to copy the version 6 DLL from an XP box and include all its dependent DLLs (which I have done), all the components in question have, at least, the _potential_ to work on my Win2K box
Where may I find comprehensive documentation on isolating and using Win32 assemblies in a .NET executable
TIA

Matt Seltze
Senior Database Analys
NYU School of Medicine Child Study Cente
New York, N

P.S. Do I also need the services of the WinXP uxtheme.dll, or will comctl32.dll (Version 6) be sufficient for what I want to do

MPS
Jul 21 '05 #1
3 2120
You need uxtheme.dll as this is the theming engine in XP. I'll be VERY
surprised if you get this to work... Not the least because you cannot
redistribute any of the files needed...

If you want app skinning in W2K... I'd go the WindowsBlinds route, or not
bother...

"Matthew P. Seltzer" <an*******@disc ussions.microso ft.com> wrote in message
news:D4******** *************** ***********@mic rosoft.com...
All--
This is a bit 'out there,' but, here goes. I have copied the WinSxS folder from a WinXP box to my Win2K box. I would like to be able to apply
XP control styles to my Win2K VB.NET apps. Given what I have copied into my
WinSXS folder, would I be able to use a combination of assembly manifests
and isolated Win32 assemblies to do this? According to MSDN, comctl32.dll,
Version 6, which is bundled with WinXP, is not redistributable . My thinking
is that if you take care to copy the version 6 DLL from an XP box and
include all its dependent DLLs (which I have done), all the components in
question have, at least, the _potential_ to work on my Win2K box. Where may I find comprehensive documentation on isolating and using Win32 assemblies in a .NET executable? TIA,

Matt Seltzer
Senior Database Analyst
NYU School of Medicine Child Study Center
New York, NY

P.S. Do I also need the services of the WinXP uxtheme.dll, or will comctl32.dll (Version 6) be sufficient for what I want to do?
MPS

Jul 21 '05 #2
Hello, Lorne
This is how I think it _might_ be done. As I mentioned in my first post, I have obtained all the necessary WinXP (unmanaged) DLLs that I need + UXTHEME.DLL. I have also downloaded the Windows Installer SDK and the Orca tool which allows you to create custom .MSI files. There are certain tables that I will have to include in my custom .MSI file in order to register the WinXP DLLs as isolated assemblies. Once they are properly registered and isolated using the Windows Installer, I believe I should be able to include a .NET assembly manifest in the folder where _all_ the necessary unmanaged and managed assemblies will reside so that I can make use of what is inside comctl32.dll, version 6. (I am not sure if I will have to make explicit function calls to APIs exposed in UXTHEME.DLL.) But, for what it's worth, this is my plan. I am not trying to skin applications, but, rather, I just want to see if I can get the WinXP look-and-feel on Win2K for free

Best

Matt
Jul 21 '05 #3
By all means try it, but I very much doubt it will work. Also, as you
cannot redistrubute these DLL, it's fairly pointless exercise as you cannot
give/sell your application to anyone with those files in the installer...

BTW: Trying to give apps on W2K the XP "look & feel" IS skinning them...
uxtheme.dll in the skinning/themeing engine in XP.

But like I said, try it by all means.. I'd be interested to know if it
works, and very surprised :)

"Matthew P. Seltzer" <an*******@disc ussions.microso ft.com> wrote in message
news:45******** *************** ***********@mic rosoft.com...
Hello, Lorne,
This is how I think it _might_ be done. As I mentioned in my first post, I have obtained all the necessary WinXP (unmanaged) DLLs that I need +
UXTHEME.DLL. I have also downloaded the Windows Installer SDK and the Orca
tool which allows you to create custom .MSI files. There are certain tables
that I will have to include in my custom .MSI file in order to register the
WinXP DLLs as isolated assemblies. Once they are properly registered and
isolated using the Windows Installer, I believe I should be able to include
a .NET assembly manifest in the folder where _all_ the necessary unmanaged
and managed assemblies will reside so that I can make use of what is inside
comctl32.dll, version 6. (I am not sure if I will have to make explicit
function calls to APIs exposed in UXTHEME.DLL.) But, for what it's worth,
this is my plan. I am not trying to skin applications, but, rather, I just
want to see if I can get the WinXP look-and-feel on Win2K for free.
Best,

Matt

Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1620
by: Dave | last post by:
I wrote a C# windows service and it will install on Win2K but won't start. I have code in it to write to the event log but it doesn't log anything. I developed it on WinXP with VS and it installs and runs fine on that WinXP system. The service is a C# remoting listener if that makes any difference. Does it have to be built on a Win2K box to work correctly? I don't have VS installed anywhere but that WinXP so I can't readily test
0
1079
by: Alexander Stojakovic | last post by:
Werte Kollegen! I have a ASP.NET page authenticating via Integrated Security. For some reason the behaviour on the client is differing depending on the OS. I have some clients using WinXP and some using Win2K, all of them having IE6 with the latest updates and all of them having 'User Authentication' set to 'Prompt for user name and password' on purpose. WinXP:
10
14376
by: Robert Jacobson | last post by:
Hi, I'm develing a COM add-in for Microsoft Word XP that displays a form. I'd like to have the form display using the Windows XP theme. However, neither using a manifest nor calling Application.EnableVisualStyles does the trick. (EnableVisualStyles works but massive instability, probably because the system is trying to theme the Word application itself.) I'm now trying to selectively enable the themes for just my form, or just...
4
1334
by: Slasher186 | last post by:
Hi all, First of all, I'm sorry if I posted at the wrong section here, but I can't seem to find the VB 6.0 newsgroup ? I'm developing my apps with VB 6.0 sp5 installed on win xp. I have create an exe file that runs fine on both winxp and win2k. However, when I try to execute that file on win 98 machine, there are errors. This error may vary between "EOF or BOF expected.." or "Error 13, Type mismatch". I've tried over and over again to do...
3
542
by: Matthew P. Seltzer | last post by:
All- This is a bit 'out there,' but, here goes. I have copied the WinSxS folder from a WinXP box to my Win2K box. I would like to be able to apply XP control styles to my Win2K VB.NET apps. Given what I have copied into my WinSXS folder, would I be able to use a combination of assembly manifests and isolated Win32 assemblies to do this? According to MSDN, comctl32.dll, Version 6, which is bundled with WinXP, is not redistributable. My...
1
1542
by: kfc1976 | last post by:
Hi All, First of all, following are the facts 1) I've been trying to solve the following issue for the past 8 hours (Not Kidding) 2) If I can't find the answer, It will drive me completely crazy Platform: XP Pro, .net 2.0 FrameWork, Visual Studio 2005 Problem Regarding:
1
1601
by: hazz | last post by:
I tried using the Visual Studio setup and deployment wizard to create an msi to install the .exe, config and .dll resource files from my winxp deve box onto a Windows 2003 server. I don't have access to that machine through vpn, I can't remote desktop. I have to send something to a colleague who has to do the installation. So far I have failed every attempt, either with the msi or by simply zipping up the bin directory files. Could...
1
1105
by: Ashok | last post by:
Hi I have some issues in applying Themes to controls programatically, when controls are inside WebpartZone. I have put some Webparts inside WebpartZone, i want to apply themes and skin to those programatically. When i am trying to set the SkinId for the controls in Page_PreInit( ... ) event , it's showing Null point reference.
9
4473
by: Guillaume Dargaud | last post by:
Hello all, I have a strange problem with a new install of Gallery2: Firefox does not display the style of the pages while IE does (but nobody I know uses IE). I'm not familiar with the way Gallery2 generates its pages but my config uses Apache (on Windows), php5, MySQL, etc... There are several themes available in Gallery2 but none display in FF. It's like the CSS is ignored. The pages I get in the browser contain the following CSS...
0
9672
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9519
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10164
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10001
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9042
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7540
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6780
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3727
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.