SFML community forums

Bindings - other languages => DotNet => Topic started by: First on September 29, 2013, 02:00:02 pm

Title: Sample code
Post by: First on September 29, 2013, 02:00:02 pm
Can you give a simple example SFML to VB.NET. Very few examples of the code for the language. Especially I can not understand the work of events. Can you give an example? I beg you.
Title: Re: Sample code
Post by: Laurent on September 29, 2013, 02:35:06 pm
There is an example here: https://github.com/SFML/SFML.Net/tree/master/examples/visualbasic

Events use the built-in event system of the language, there's nothing specific to SFML.
Title: Re: Sample code
Post by: First on September 29, 2013, 03:13:44 pm
I did not understand the link. Can you elaborate on the account of events in VB.NET or give an example of code? Just last month I can not understand it and the evil already. Just the code.
Title: Re: Sample code
Post by: Laurent on September 29, 2013, 06:06:48 pm
The link brings you to the repository where the VB.Net example is. The code is just one click away (in the .vb file).

https://github.com/SFML/SFML.Net/blob/master/examples/visualbasic/OpenGL.vb

If you don't understand the event system in VB then read more about it, we won't teach you the VB language here ;)
Title: Re: Sample code
Post by: First on September 29, 2013, 08:19:20 pm
Thank you very much! I understand the example. SFML is the best!