help about xp style format

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • muddasirmunir
    Contributor
    • Jan 2007
    • 284

    help about xp style format

    there is an artical name "Give xp look to vb 6" in visual basic article

    i had done the following about the ariticle

    1. copy the code and make a VB6.exe.manifes t
    in vb6.exe folder

    2 make a project with name abc as project name and form1 as form
    with only one label ,one text box and one combo box

    3 make a exe of the project with name abc.exe

    4 again copy the code in notepad and make a file abc.exe.manifes t
    in the folder where my abc.exe exist

    5 run the exe so my porject look like xp form

    but when i run the exe it give me error

    Code:
    "system Error &H80070583 (-2147023485). Class does not exist"

    what is going wrong?

    thanks
  • keign
    New Member
    • Nov 2007
    • 8

    #2
    i have also encounter that article and it works..

    Comment

    • muddasirmunir
      Contributor
      • Jan 2007
      • 284

      #3
      well
      is there any step i am missing

      Originally posted by keign
      i have also encounter that article and it works..

      Comment

      • AHMEDYO
        New Member
        • Nov 2007
        • 112

        #4
        sure man u missing very important thing :D

        declare this API function in any moudle in ur project

        Public Declare Sub InitCommonContr ols Lib "comctl32.d ll" ()

        call it from each Form Initialize Event in ur project Form_Initialize event
        it let VB common controls initial it self to work with xp style and another information that u can need, if u use microsoft common controll 5.0 it will work with xp style 6.0 not and 5.0 have bugs can fill earth planet :D congratulation

        Private Sub Form_Initialize ()
        Call InitCommonContr ols
        End Sub

        Comment

        • muddasirmunir
          Contributor
          • Jan 2007
          • 284

          #5
          Thanks Ahmed
          its now working fine



          Originally posted by AHMEDYO
          sure man u missing very important thing :D

          declare this API function in any moudle in ur project

          Public Declare Sub InitCommonContr ols Lib "comctl32.d ll" ()

          call it from each Form Initialize Event in ur project Form_Initialize event
          it let VB common controls initial it self to work with xp style and another information that u can need, if u use microsoft common controll 5.0 it will work with xp style 6.0 not and 5.0 have bugs can fill earth planet :D congratulation

          Private Sub Form_Initialize ()
          Call InitCommonContr ols
          End Sub

          Comment

          • AHMEDYO
            New Member
            • Nov 2007
            • 112

            #6
            you welcome and Best Regards

            Comment

            • muddasirmunir
              Contributor
              • Jan 2007
              • 284

              #7
              asalm o alikum ahmed
              muddasir here

              now i am facing a problem regariding this code.
              i had alread made a project which contain about 80-100 forms
              now when i use the code in it it work only when i make new control
              (textbox, button) .
              the control(text box,buttton etc) which i had already made doet not
              get xp look style.
              can you solve the problem
              thanks

              Originally posted by AHMEDYO
              you welcome and Best Regards

              Comment

              • AHMEDYO
                New Member
                • Nov 2007
                • 112

                #8
                we alikom elsalam

                sry but i didnt understand u fully.

                first i will tell u about bad news, when ur project have big number of forms , visual basic will make some crazy things, and things have no meaning

                second i understand that u was create forms have controllers before u create manifest file and use initcommonctr() function and all these old controls didnt appear by xp style???, u must recreate these controlls to take xp style?

                waiting for ur response

                Comment

                • muddasirmunir
                  Contributor
                  • Jan 2007
                  • 284

                  #9
                  asalm o alikum
                  well i will put my question in another way if you donot understand

                  i already had a project with about 80-100 forms. which look like
                  an ordinary style as vb has.
                  now i want to change the style of all the forms of the project
                  with minimum efforst.

                  with manifest file it does not change the style of the project
                  unless i have to delete each control and then agian make a new
                  control whic is for 100 forms is quiet a heavy task

                  so , is there any way to change the style with out deleting each
                  control and make a new one.

                  thanks





                  Originally posted by AHMEDYO
                  we alikom elsalam

                  sry but i didnt understand u fully.

                  first i will tell u about bad news, when ur project have big number of forms , visual basic will make some crazy things, and things have no meaning

                  second i understand that u was create forms have controllers before u create manifest file and use initcommonctr() function and all these old controls didnt appear by xp style???, u must recreate these controlls to take xp style?

                  waiting for ur response

                  Comment

                  • Ali Rizwan
                    Banned
                    Contributor
                    • Aug 2007
                    • 931

                    #10
                    Assalam-o-Alaikum Muddasir Bhai.

                    How are you and hows the children :D

                    OK.

                    Have you put a manifest file to vb6's directory, is vb6 is giving itself xp style or not?

                    If yes then it is impossible that vb is not changing the style of old form controls.
                    What ever.
                    Now i m working on vista style controls. For this purpose i m trying to get ocx from vista and its libraries so that i can give vista style to my vb.
                    Is it amazing.
                    But i know many other people are start doing on such thing.

                    I have another control by which you can skin you forms but the problem is that i have its serial no but not the regestration no.

                    But i think you want to make your forms like a apple, orange or any other style.
                    from any image.
                    Are you?

                    GOODLUCK
                    any other problem?
                    ALI

                    Comment

                    • AHMEDYO
                      New Member
                      • Nov 2007
                      • 112

                      #11
                      Originally posted by muddasirmunir
                      asalm o alikum
                      well i will put my question in another way if you donot understand

                      i already had a project with about 80-100 forms. which look like
                      an ordinary style as vb has.
                      now i want to change the style of all the forms of the project
                      with minimum efforst.

                      with manifest file it does not change the style of the project
                      unless i have to delete each control and then agian make a new
                      control whic is for 100 forms is quiet a heavy task

                      so , is there any way to change the style with out deleting each
                      control and make a new one.

                      thanks
                      i got it and i understand u now, but i cant beleive that because, ur form is just .frm file have text desription that u have buttons, textboxs...etc and each time u reopen ur project these controls is repaint again, i made test project on my PC without vb.exe.manifest file and then create this file and all things ok and work well, i think this because u have more forms, visual basic always do that, plz try to open .frm manual in notebad and u will c button description like that

                      Begin VB.CommandButto n Command1
                      Caption = "Command1"
                      Height = 375
                      Left = 240
                      TabIndex = 0
                      Top = 2160
                      Width = 1575
                      End
                      try to copy all text to new file by same name and rename old file, it just test because it have no sense to do that

                      Comment

                      • muddasirmunir
                        Contributor
                        • Jan 2007
                        • 284

                        #12
                        asalam o alikum ahmed
                        by the way which children are you talking about . i am no married
                        yet.

                        now about your question i had already made a manifiest file in vb directory but my project is made on vb which no manifiest file is installed
                        and also my vb is not looking like a xp style.

                        did you have .ocx file which change vb style to xp. if yes then
                        please mail me no my username on yahoo.

                        and your last about making apple or orange style in my poject i just
                        want to look my project good looking now it looking as just as
                        it look like if i use win 98. now i am only using win xp.

                        allah hafiz



                        Originally posted by Ali Rizwan
                        Assalam-o-Alaikum Muddasir Bhai.

                        How are you and hows the children :D

                        OK.

                        Have you put a manifest file to vb6's directory, is vb6 is giving itself xp style or not?

                        If yes then it is impossible that vb is not changing the style of old form controls.
                        What ever.
                        Now i m working on vista style controls. For this purpose i m trying to get ocx from vista and its libraries so that i can give vista style to my vb.
                        Is it amazing.
                        But i know many other people are start doing on such thing.

                        I have another control by which you can skin you forms but the problem is that i have its serial no but not the regestration no.

                        But i think you want to make your forms like a apple, orange or any other style.
                        from any image.
                        Are you?

                        GOODLUCK
                        any other problem?
                        ALI

                        Comment

                        • Ali Rizwan
                          Banned
                          Contributor
                          • Aug 2007
                          • 931

                          #13
                          Assalamoalaikum
                          Fist i m Ali not Ahmed.
                          And if your vb is not painting it self xp style.
                          Ok now rename your vb6 manifest which you have make in vb6 directory.
                          VB6.EXE.manifes t
                          Now vb is painting itself xp style.
                          Allah Hafiz

                          Comment

                          Working...