troubleshooting Question

strange VB Manifest problem

Avatar of sakuya_su
sakuya_su asked on
Visual Basic Classic
4 Comments1 Solution542 ViewsLast Modified:

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)
   End With
   InitCommonControlsEx iccex
   InitCommonControlsVB = (Err.Number = 0)
   On Error GoTo 0
End Function

Public Sub Main()

   Load frm_Main

End Sub

and the manifest file is:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
        type="win32" />
    <description>Your application description here</description>
                language="*" />

now the problem, my controls looks like:

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
Stephen Manderson
Software Engineer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros