|
-
Jan 16th, 2010, 11:23 AM
#1
Thread Starter
Lively Member
[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
-
Jan 16th, 2010, 11:27 AM
#2
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.
-
Jan 16th, 2010, 11:07 PM
#3
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,...
-
Jan 16th, 2010, 11:42 PM
#4
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,...
-
Jan 24th, 2010, 04:32 AM
#5
Thread Starter
Lively Member
Re: save the Skin after close the project
-
Jan 24th, 2010, 04:59 AM
#6
Re: save the Skin after close the project
 Originally Posted by SNIPER.PS
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|