Advertise Here

Author Topic: [Tutorial] Changing VB6 Styles.  (Read 8150 times)

0 Members and 1 Guest are viewing this topic.

Offline Global

  • SMF For Free Member
  • *
  • Posts: 20
  • Is a
    • View Profile

  • Total Badges: 11
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
[Tutorial] Changing VB6 Styles.
« 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: [Select]
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 ;)

Offline [JeReMy]

  • SMF For Free Master
  • *
  • Posts: 1174
  • www.ourhangout.org
    • View Profile
    • ourhangout

  • Total Badges: 16
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Tutorial] Changing VB6 Styles.
« Reply #1 on: November 28, 2008, 07:07:51 pm »
Very nice tutorial thanks im gonna do this 1 now

 

Related Topics

  Subject / Started by Replies Last post
28 Replies
6421 Views
Last post May 12, 2007, 07:47:20 pm
by simply sibyl
0 Replies
1352 Views
Last post June 01, 2007, 08:26:24 pm
by Agent Moose
1 Replies
996 Views
Last post October 14, 2007, 04:01:16 pm
by R u n e s c a p e
16 Replies
2110 Views
Last post August 15, 2008, 10:51:04 pm
by simply sibyl
3 Replies
608 Views
Last post April 04, 2009, 11:00:46 am
by Andrew