how i can save the Skin after close the project in the registry
this is my project
Skin Project
Printable View
how i can save the Skin after close the project in the registry
this is my project
Skin 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.
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. :wave:
Download WinRARQuote:
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.
Hi Fox, I think winRAR is better than Winzip, when used for larger files. That's my personal experience.... ;)
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:
GetSetting and SaveSetting is used for saving the skin name to registry.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
For it's tutorial: Tutorila on Get and SaveSetting in CodeBank by Marty
thank you very much