SFML community forums

Bindings - other languages => DotNet => Topic started by: mtrx3 on June 26, 2018, 08:42:38 pm

Title: I can't seem to use the loadFromFile function from Texture in Visual Basic
Post by: mtrx3 on June 26, 2018, 08:42:38 pm
After declaring a texture like this

Dim tex As Texture

Then typing

tex.

A intellisense message comes up that loadFromFile is not a member of Texture.

How can I correctly do this so I can include error checking code such as missing files and etc.
Title: Re: I can't seem to use the loadFromFile function from Texture in Visual Basic
Post by: Pacis on May 14, 2019, 12:27:00 am
You have to use the constructor to load the path

Texture A = new Texture("./b.png")