Windows 7 type of controls using vb6 and uctabstrip control
I am using free uctabstrip control from here ; http://planet-source-code.com/vb/scr...74007&lngWId=1
I am using vb6 on Windows 7 64bit. When you compile and run it you actually get Windows 7 type of controls like rounded corner command buttons and tab control where the selected tab page is white.
But when I compile it second time with a new name, I get old windows xp type of controls. Why is that? And how can I get Windows 7 type of controls on all projects?
Re: Windows 7 type of controls using vb6 and uctabstrip control
From your description it sounds like the demo Project relied on the user interface theme provided by selecting the Common Controls 6 assembly. This is done using an application manifest.
Maybe the original demo Project had one but relied on an external manifest file linked to the compiled program by name. Renaming the program is enough to break the link. The system also maintains a manifest cache (something like Shell32's icon cache) so changing, adding, renaming programs and external manifests doesn't take effect immediately.
By default a program gets the old look when it lacks this CC6 assembly selection manifest. Such programs are considered legacy, and for appcompat reasons do not automatically get the newer assembly.
These features came along in 2001 with Windows XP and have been modified since then. Since VB6 was never replaced by a successor product VB programmers never got easy access to such features. The idea was that everyone would settle for .Net's managed scripting languages or move to C++ for native code development.