Put the call to InitCommonControls in the form's Initiate event. Calling the
code from the load event is too late in the window creation stage.
And if you want to have VB take on the XP appearance in the IDE, copy the
manifest to the VB exe folder and name it VB6.exe.manifest. The only side
effect of this is the colour selection windows on the properties window no
longer show the colours.
--
Randy Birch
MVP Visual Basic
http://vbnet.mvps.org/
Please respond only to the newsgroups so all can benefit.
"Roy Riddex" <ro**************@blueyonder.co.uk> wrote in message
news:KV****************@news-binary.blueyonder.co.uk...
: I'm trying to apply the XP look to a small VB6 program by using info from:
:
http://www.vbaccelerator.com/home/VB...VB/article.asp
:
: I've created the manifest file and located it in the same folder as the
exe
: of my program but it wont work. Can someone please look at the code from
: this link which I pasted into the genaral section of my code. Is this the
: correct area to paste the code? Where it says 'Start your application
here',
: what code should be in here?
:
: Thanks again for all your help
:
:
: Roy Riddex
:
: