SMF For Free Support Forum
Signup For Free Forum
July 19, 2008, 05:46:06 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1]
  Print  
Author Topic: [Tutorial] Changing VB6 Styles.  (Read 450 times)
0 Members and 1 Guest are viewing this topic.
Global
SMF For Free Member
*
Offline Offline

Posts: 20

Is a


View Profile
« on: December 07, 2007, 02:33:12 am »

Hey guys! Just a little hack for VB6 i have here for you guys.

   
Have you ever noticed that in Visual Basic 6, the styles of buttons, textboxes, check boxes, dialogs, ect ect, are all "Classic Windows". Infact, the only thing that in your app that has anything that resembles XP is the blue (or silver or green) tittle bar.

I will show you how to get your applications resembling Windows XP, rather than Classic Windows. (The only reason that VB follows Classic Windows is because of "Dll Hell", an "issue" that occurs when developers switch platforms) Okay, so we will accomplish this using a manifist file.

1. Pop open Notepad.

2. Enter the following text.
Code:
QUOTE
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
  version="1.0.0.0"
  processorArchitecture="X86"
  name="Microsoft.VB6.VBnetStyles"
  type="win32"
/>
<description>VBnet Manifest for VB6 IDE</description>
<dependency>
  <dependentAssembly>
    <assemblyIdentity
      type="win32"
      name="Microsoft.Windows.Common-Controls"
      version="6.0.0.0"
      processorArchitecture="X86"
      publicKeyToken="6595b64144ccf1df"
      language="*"
    />
  </dependentAssembly>
</dependency>
</assembly>

Save the file as vb6.exe.manifest

3. Place the file under the same folder that has Vb6.exe. (That directory is usually c:/... .../Microsoft Visual Studio) Make SURE it is in the same folder containing VB6.exe

4. Now run vb6.exe (or just open Visual Basic, in english). You will see that all styles have been replaced with XP styles.

Even More ...


Enjoy the new styles.

~Global Wink
Logged



Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC
ServerBeach Coupon
Page created in 0.329 seconds with 18 queries.