- This topic has 2 replies, 1 voice, and was last updated 19 years ago by Admin.
-
AuthorPosts
-
November 22, 2004 at 9:47 pm #190162AdminAdministrator
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 WithPrivate 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 Looke.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
February 5, 2005 at 4:15 am #190164AdminAdministratorna thats just more code to add i can save time by adding a ctl file i use 🙂
March 12, 2005 at 3:39 pm #190163AdminAdministratorCheck 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 🙂
-
AuthorPosts
Related
- You must be logged in to reply to this topic.