Results 1 to 6 of 6

Thread: [RESOLVED] save the Skin after close the project

  1. #1

    Thread Starter
    Lively Member SNIPER.PS's Avatar
    Join Date
    Dec 2009
    Posts
    96

    Resolved [RESOLVED] save the Skin after close the project

    how i can save the Skin after close the project in the registry

    this is my project
    Skin Project

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: save the Skin after close the project

    I don't use WinRar, so I can't look at your project; you may want to upload a zip version too for others like us.

    P.S. If there is no source code in that project, not many people will even look at it.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: save the Skin after close the project

    That file contains an EXE file(Project_skins.exe) and it is infected with Virus.Win32.Sality.aa. Detected by my Kaspersky 2010 and 4shared.com itself shows that, it is infected.
    Try uploading the file without the EXE file. Also, include that activex component. Otherwise, we won't be able to test it.

    I don't use WinRar, so I can't look at your project; you may want to upload a zip version too for others like us.
    Download WinRAR
    Hi Fox, I think winRAR is better than Winzip, when used for larger files. That's my personal experience....

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  4. #4
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: save the Skin after close the project

    I had managed to find a solution to your problem...

    Testing:
    I had downloaded the OCX file from: http://www.ocxdump.com/download-ocx-.../download.html
    When your source file was extracted, I got the project file and a form and some skin files. I used them for testing.

    ---------------------------------
    Solution:
    Code:
    Dim selectedSkin As String
    
    Private Sub Form_Load()
    selectedSkin = GetSetting(App.EXEName, "interface", "skin", "") '~~> Grab the previously selected skin
    If Len(selectedSkin) <> 0 Then  '~~> Check if any skin was selected previously
      Skin1.LoadSkin App.Path & selectedSkin  '~~> If so, apply the skin it.
      Skin1.ApplySkin Me.hWnd
    End If
    End Sub
    
    Private Sub Cooller_Click()
    selectedSkin = "\Cooller.skn" '~~> Saving the name of selected skin to a variable
    SaveSetting App.EXEName, "interface", "skin", selectedSkin  '~~> Save the selected skin to registry
    
    Skin1.LoadSkin App.Path & "\Cooller.skn"
    Skin1.ApplySkin Me.hWnd
    End Sub
    '.....
    '....
    '..
    '. ~~> Include the two lines like in Coller_Click() for the rest of the skins
    GetSetting and SaveSetting is used for saving the skin name to registry.
    For it's tutorial: Tutorila on Get and SaveSetting in CodeBank by Marty

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  5. #5

    Thread Starter
    Lively Member SNIPER.PS's Avatar
    Join Date
    Dec 2009
    Posts
    96

    Re: save the Skin after close the project

    thank you very much

  6. #6
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: save the Skin after close the project

    Quote Originally Posted by SNIPER.PS View Post
    thank you very much
    If your problem is solved, please consider marking the Thread as RESOLVED (from Thread Tools found at the top of this page)...

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width