Advertisement
4_2005-2006 Miscellaneous #160065

XP Style Controls using Manifest

Give your .NET applications an XP style look using a manifest file.

AI

สรุปโดย AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

ซอร์สโค้ด
original-source
If you want to give your .NET apps an XP look and feel, here's how to do it.<br><br><b>NOTE:</b><i> This will have no effect on non-XP operating systems.</i><br><br><b>Step 1:</b><br>Start notepad and create a file in the application directory using the application's exe name with ".manifest" added to the end. (ex. "yourapp.exe.manifest")<br><br><b>Step 2:</b><br>Paste the following into the file:<br><br><p>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;<br>
&lt;assembly xmlns=&quot;urn:schemas-microsoft-com:asm.v1&quot; manifestVersion=&quot;1.0&quot;&gt;<br>
&lt;assemblyIdentity version=&quot;1.0.0.0&quot; processorArchitecture=&quot;X86&quot; name=&quot;APPNAME&quot; 
type=&quot;win32&quot; /&gt;<br>
&lt;description&gt;ENTER A DESCRIPTION HERE&lt;/description&gt;<br>
&lt;dependency&gt;<br>
&lt;dependentAssembly&gt;<br>
&lt;assemblyIdentity type=&quot;win32&quot; name=&quot;Microsoft.Windows.Common-Controls&quot; 
version=&quot;6.0.0.0&quot; processorArchitecture=&quot;X86&quot; publicKeyToken=&quot;6595b64144ccf1df&quot; 
language=&quot;*&quot; /&gt;<br>
&lt;/dependentAssembly&gt;<br>
&lt;/dependency&gt;<br>
&lt;/assembly&gt; </p><br><i>The above code is also included in the attached zip file.</i><br><br><b>Step 3:</b><br>Change the necessary information, such as "version" "name" and "description" where applicable.<br><br><b>That's it! Make sure you save the file in the same directory as the executable and run your program!</b><br><br><i>This can also be used with VB6, but requires an addition to your code. Do a search for "manifest" in the "Visual Basic" category for more info on this.</i>
ความคิดเห็นดั้งเดิม (3)
กู้คืนจาก Wayback Machine