Link to home
Start Free TrialLog in
Avatar of aplelois
aplelois

asked on

Aplying Skin to app with ActiveSkin 4.3

Hello,
I have made my own skin for my little application that I have in VB.
I am using ActiveSkin 4.3 to build the skin everything is fine im just
wondering if there is anyway to have the file.skn inside the .exe
so I dont have to have two files to run one app..
I order for me to run it correctly I need to have the .skn in the same folder.
can anyone give me any suggestions ?
thanks
Avatar of Sethi
Sethi
Flag of India image

I am not sure but you may be able to save the skn file in a VB resource file and then call it from the resource file. When a VB app is complied the resource file is compiled with it.
Avatar of sakuya_su
sakuya_su

http://visualbasic.about.com/od/usevb6/a/ResVB6.htm

follow that tutorial and you will see how to include a resource and use it

and when you have a resource, you can save it to the current path while running,
and delete it after running
Avatar of aplelois

ASKER

well if i send the .exe to my friends will they be able to see it right?
ASKER CERTIFIED SOLUTION
Avatar of Sethi
Sethi
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
>>http://visualbasic.about.com/od/usevb6/a/ResVB6.htm
>>follow that tutorial and you will see how to include a resource and use it

it is not filename.res it is skin.skn

if I dont have skin1.skn and I run the .exe I get and error and it doesnt load.
the .skn file is the skin I made using ActiveSkin but I only want file.exe to have everything.
so I dont have to send the two files to my friends.

this is the source code
--------------------------
Option Explicit

Private Sub Form_Load()
    skn.LoadSkin App.Path + "\sources\Skin1.skn"
    skn.ApplySkinByName Me.hWnd, "Simple"
End Sub
you can download a sample source code that includes a sample skin,
I have exactly the same thing exept for the skin file that is different.
http://rapidshare.de/files/10232206/skin.7z.html