In this post I will teach you how to receive data from arduino. You need to have Arduino IDE, if you don’t have arduino IDE you can download of here. The firs step is write the next code, the code has comments: You should have somethin like this, and you press in arrow button toRead More
Category: Programming languages
How exec a string like query in Sql Server? Dynamic Sql
In Sql Server you can exec a string like sql, for make it you shall use a stored procedure called sp_sqlexec. In the nex code I write a query like string and the next line exec the string like query: You should be careful with this stored procedure, as it could allow sql injection.
Function in C# .Net to use Hash SHA1
A hash function serves to become a string characters in other string characters with length fixed. below I wrote the code to use hash SHA1. You can use it like this: Remember to add the namespace in top in your class:
How to force a textbox to accept only numbers in windows forms?
Some occasions we need to force a textbox to accept only numbers, that the user can’t key letters and with this add validation in user interface. The following code forces the user to only key a number, you shall click in the control and click in KeyPress and add the next code: If you wantRead More
Free code of videogame Snake in C# .Net
I have written the next code to explain how to make the videogame Snake in C# .Net. The technology is C# .Net with windows forms. You can view the process in this collection video here but they have a issue, the collection video was explaining in spanish. If you want to download the code, youRead More
How edit the appsettings section in app.config file in program running
With this code you can edit your app.config file. If you use the ConfigurationManager class only change the value in memory. With this sample you can change the file. In the next code I edit the app.config file with the XmlDocument class and refresh all the new values. The code is commented.
What the hell are the properties in C# .Net? My first english video
In this video I will try to explain the properties in c # .Net.