• 0

VB 6 Application Appearance


Question

How do i adapt or force my compiled vb applications to accept the windows themes in its interface. Far example: Luna has the greenish progress bars and option buttons,, with the blue scroll bars

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0
i cant edit the code now,, but that will fix the opt button problems?

584751010[/snapback]

Yes it will, it notifies that your application is using the ComCtrl library version 6 i think.

Link to comment
Share on other sites

  • 0

ok ive run into problems again----

when im sending this program to friends via the nullsoft installer,,, some are getting the message system Error &H80070583 (-2147023485). class does not exist. the issue dissapears when the manifest file is deleted

and as i was told up there i have entered call InitCommonControls() in my form_load zone,, but as i suspected it gave me the error "sub or function not defined" ,,, i know my syntax is probably wron so can anyone tell me how to enter it?

Link to comment
Share on other sites

  • 0

Sorry, I left out alot.

For one thing, to fix the blackened controls, put them in a picturebox. Change the appearence of the picturebox so it is camo-ed into the background.

Next, for the XP style you need a declaration in a module, or at the top of the form that starts when the program starts.

Declaration for module: Public Declare Sub InitCommonControls Lib "comctl32" ()

Declaration for form: Private Declare Sub InitCommonControls Lib "comctl32" ()

USE ONE ONLY

Then put this in the form that starts when the program starts.

Private Sub Form_Initialize()

Call InitCommonControls

End Sub

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.