Sinisterly
Inserting skins. - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: Visual Basic & .NET Framework (https://sinister.li/Forum-Visual-Basic-NET-Framework)
+--- Thread: Inserting skins. (/Thread-Inserting-skins)



Inserting skins. - tomys - 06-28-2011

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=12hs2QrmUNY&feature=player_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.



RE: Inserting skins. - blowdoof - 06-28-2011

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


RE: Inserting skins. - tomys - 06-28-2011

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?


RE: Inserting skins. - tomys - 06-29-2011

(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:



RE: Inserting skins. - tomys - 06-29-2011

You mean in one folder with file which i want to style? Ill try later g2g

Thanks.


RE: Inserting skins. - tomys - 06-30-2011

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