Skip to content
Home > Programming > Giving Your Project Controls a XP Look by Project SP

Giving Your Project Controls a XP Look by Project SP

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #190162
    Admin
    Administrator

    This was explain by salmanpaji in the old forums 8)

    Put This In You Programs Codes And See It Will Work, NoMatter What
    Kind of Control You’re Working With

    Private Declare Function InitCommonControls Lib "comctl32.dll" () As Long
    Private Sub Form_Initialize()
    Call InitCommonControls
    End Sub

    Create A Manifest File From NotePad And Name the FileName That
    you Want It To Have a XP Look

    e.g; the FileName Is “ProjectSP.exe”

    then Make The Manifest FileName Like This

    e.g: ProjectSP.exe.manifest

    >>>>> Put These Codes In The NotePad

    
    
    
    
    
    
    
    

    THIS METHOD 100%……. Project SP A.K.A. Salman Paji

    #190164
    Admin
    Administrator

    na thats just more code to add i can save time by adding a ctl file i use 🙂

    #190163
    Admin
    Administrator

    Check I was looking for this solution, where all the options controls or check boxes turb black inside a frame when giving a xp look, but i found this and it works to take the black away.

    controls (such as option buttons and check boxes) within a Frame control will loose the XP style and appear as black boxes. The problem is that to draw the XP styles the container must provide a device context handle (hDc) with which to perform the GDI functions. Since frames don’t provide an hDc the result is an unpainted (black) controls. A tip I received from Quintin Prinsloo to overcome this problem is to place the controls inside a picture box – which has a hDc – and then place the picture box into the frame. By setting the border style to none the controls paint correctly without the appearance of the extra picture box.

    Cool 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.