|
-
May 29th, 2003, 08:17 AM
#1
Thread Starter
Frenzied Member
Windows XP Look
Ok..i know this question has been asked over and over again but..i'm kinda confused.
I want my apps to have that Windows XP look. The nice green option buttons or the light blue scroll bars..
I tried making a manifest file with the XML code (which i dont have anymore..) and that only worked like once for me.
Can't you just make the WinXP look in VB instead of having an extra file there? Isnt there some sort of option in VB.net 2002 that will make it look like XP?
-
May 29th, 2003, 08:29 AM
#2
^:^...ANGEL...^:^
Re: Windows XP Look
Originally posted by SomethinCool
Ok..i know this question has been asked over and over again but..i'm kinda confused.
I want my apps to have that Windows XP look. The nice green option buttons or the light blue scroll bars..
I tried making a manifest file with the XML code (which i dont have anymore..) and that only worked like once for me.
Can't you just make the WinXP look in VB instead of having an extra file there? Isnt there some sort of option in VB.net 2002 that will make it look like XP?
I am not sure about VB.NET but when I run them in 2000 they looks same as 2000 thingy except colours are different...
I think someone posted code to make command buttons and other stuff looks like XP...Try serching more and you should find something but that might be different than what u r looking for...
Cheers...
-
May 29th, 2003, 08:33 AM
#3
PowerPoster
Well
If running on xp system, you can use MANIFEST file.
Else, trying these controls : www.vbsmart.com
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
May 29th, 2003, 09:36 AM
#4
Hyperactive Member
try the following:
Mizo Themer : excellent auto manifest generator, just point it to an exe and walla... it be themed (if the exe supports themes)
progress bar : the ccrp progress bar (unlike the common controls... ummm control ) can handle XP manifested themed look
status bar & tabs : there is a xp status bar, and tabstrip (will keep the xp look even if not on xp)
statusbar : http://www.freevbcode.com/ShowCode.Asp?ID=5418
tabstrip: http://www.freevbcode.com/ShowCode.Asp?ID=5417
hope i helped
Our Father, who 0wnz heaven, j00 r0ck!
May all 0ur base someday be belong to you!
May j00 0wn earth just like j00 0wn heaven.
Give us this day our warez, mp3z, and pr0n through a phat pipe.
And cut us some slack when we act like n00b lamerz, just as we teach n00bz when they act lame on us.
Please don't give us root access on some poor d00d'z box when we're too pissed off to think about what's right and wrong, and if you could keep the fbi off our backs, we'd appreciate it.
For j00 0wn r00t on all our b0x3s 4ever and ever, 4m3n.
-
Oct 20th, 2003, 01:43 AM
#5
New Member
how then, does one use xp style controls in vb 6 apps? without writing custom user controls?
the manifest/xml files wont work the same way they will with vb.net apps.
I am Tux.
That is all you ever need know.
-
Oct 20th, 2003, 04:20 AM
#6
All controls can have the XP look applied, but for VB6, you need to use the older common controls. They still work the same, so simply just select common controls 5 instead of 6, i think the first batch of 6 work fine (default controls) but the progress bar doesn't work unless it's common controls v5. But yeah, just make one manifest file and your away, doesn't need to be customized in any way and you can use it for VB6. The only issue i've had with using the manifest on VB6.exe is the colour picker doesn't work, you can't see the colours, but if you know where they are, it's not much of a problem (Though i wouldn't mind knowing how to get the colours back without removing the manifest file).
Anyway, there really isn't much of a way to get it working without it, that's what i've read, and that's what the microsoft site says, but it's quick and easy and doesn't require a lot of code. The code to get is working is....
VB Code:
'Place in Module
Private Type tagInitCommonControlsEx
lngsize As Long
lngICC As Long
End Type
Private Declare Function InitCommonControlsEx Lib "comctl32.dll" (iccex As tagInitCommonControlsEx) As Boolean
Private Const ICC_USEREX_CLASSES = &H200
Public Function InitCommonControlsVB() As Boolean
On Error Resume Next
Dim iccex As tagInitCommonControlsEx
'Ensure CC Available:
With iccex
.lngsize = LenB(iccex)
.lngICC = ICC_USEREX_CLASSES
End With
InitCommonControlsEx iccex
InitCommonControlsVB = (Err.Number = 0)
On Error GoTo 0
End Function
and place this in the startup form...
VB Code:
Private Sub Form_Initialize()
InitCommonControlsVB
End Sub
-
Oct 20th, 2003, 09:51 AM
#7
New Member
wow! works like a charm! thx m8!
I am Tux.
That is all you ever need know.
-
Oct 21st, 2003, 01:04 AM
#8
-
Jun 16th, 2004, 01:25 AM
#9
Hyperactive Member
Well i see many different solutions and many different answers all are working and everything so here's mine also:
http://www.maxvb.com/viewtopic.php/p/217
Tapan Bhanot,
CEO, Avis Software.
Website: www.avissoftware.com
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|