Login Register






Inserting skins. filter_list
Author
Message
Inserting skins. #1
Hey. I looked sage tutorial how to insert skins. Ok i did all what he showed only i can change to 2.0 framework.
http://www.youtube.com/watch?v=12hs2QrmU...r_embedded

I got error when i want to insert style.
[Image: probx.jpg]

I hope somebody can help me, i tried to solve the problem but nothing.

Reply

RE: Inserting skins. #2
as the error indicates, "object reference not set to an instance of an object."
Meaning you're trying to use an object without an existing instance of that object.
f.e. you have a class Car with a property named Color. When you try to change car.color, just like that, it will give you the above error. when you first CREATE a car (f.e. dim Toyota as new car), you will be able to reach and change the color property.

so in code:
Code:
public class Car Public Sub New() End sub Private _carColor As System.Drawing.Color Public Property carColor() As System.Drawing.Color Get Return _carColor End Get Set(ByVal value As System.Drawing.Color) _carColor = value End Set End Property Public Sub Drive messagebox.show("Vroam vroam") End Sub End class
WRONG:
Code:
dim Toyota as Car Toyota.color = Drawing.Color.White Toyota.drive()

CORRECT
Code:
dim Toyota as new Car Toyota.color = Drawing.Color.White Toyota.drive()

That's all some basic stuff you need to learn before playing with skins etc.. i'd suggest starting with Console Applications before breaking your head over Windows Forms

Reply

RE: Inserting skins. #3
Wow, where do i need to put this code? O.o Ill learn Windows App. , cause i dont like Concole, but maybe will try. So where i need to put em?

Reply

RE: Inserting skins. #4
(06-28-2011, 09:32 PM)The 7th Sage Wrote: when does this error show up? Are you entering skincrafter file name manually? For some reason it gives error when you browse.

I browse the **.skf file, and I get eror when press open!:'(:epic:

Reply

RE: Inserting skins. #5
You mean in one folder with file which i want to style? Ill try later g2g

Thanks.

Reply

RE: Inserting skins. #6
Sage i got it run manually and all works, but i want t use that .exe file like one file i cant include the style somehow? If no then there will be 2 files style and .exe

Reply