sakuya_su
asked on
strange VB Manifest problem
Hi,
Im trying to use a manifest file so my controls looks like XP style, now i have the following code:
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
Public Sub Main()
InitCommonControlsVB
Load frm_Main
frm_Main.Show
End Sub
and the manifest file is:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<assembly xmlns="urn:schemas-microso ft-com:asm .v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86 "
name="CompanyName.ProductN ame.YourAp pName"
type="win32" />
<description>Your application description here</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Co mmon-Contr ols"
version="6.0.0.0"
processorArchitecture="X86 "
publicKeyToken="6595b64144 ccf1df"
language="*" />
</dependentAssembly>
</dependency>
</assembly>
now the problem, my controls looks like:
http://genesis-kiith.no-ip.com/why.gif
you see the cancel button looks very good a but there is the funny black border around the other 2 buttons? (Excuss the bad image quality)
Now i have tried different XP Styles, everyone of them looks like that
there is nothing different between the 3 buttons apart from the font, they were copys of each other (I tried none copies too)
Anyone have an idea?
thanks in advanced
Im trying to use a manifest file so my controls looks like XP style, now i have the following code:
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
Public Sub Main()
InitCommonControlsVB
Load frm_Main
frm_Main.Show
End Sub
and the manifest file is:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<assembly xmlns="urn:schemas-microso
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86
name="CompanyName.ProductN
type="win32" />
<description>Your application description here</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Co
version="6.0.0.0"
processorArchitecture="X86
publicKeyToken="6595b64144
language="*" />
</dependentAssembly>
</dependency>
</assembly>
now the problem, my controls looks like:
http://genesis-kiith.no-ip.com/why.gif
you see the cancel button looks very good a but there is the funny black border around the other 2 buttons? (Excuss the bad image quality)
Now i have tried different XP Styles, everyone of them looks like that
there is nothing different between the 3 buttons apart from the font, they were copys of each other (I tried none copies too)
Anyone have an idea?
thanks in advanced
All I can think of is that your buttons' BackColor properties might not be set to Button Face.
ASKER
they are, unfortunatly
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.