Posts Tagged "C#"

Reading and Updating an Access Database in C#

Almost on a daily basis we run across posts that ask about using a .NET language to read and update a database. Oh it might have a slight variation like "How do I load a value from a database into a textbox?" or "How do I read a database into _______ control and then update the database?" So I figured I would put a few little snippets here to show ...

Ref and Out Keywords in C#

The basic idea of a function was to give it information and have it return a single value as a result. That result could have been an integer or a float or even an object or struct. On that principle alone many great programs have been made. However, there came a need for returning multiple values from a function. Sometimes the function not only needed to return a single value ...

Variance and Standard Deviation of An Array in C#

Statistics... the bane of some coders existence. Why would it be any fun unless the stats say you are a superstar sports athlete (which coders are not), are going to win a huge prize like the lottery (which coders realize is futile with something like 1 in 13 million PER SELECTION) or that the probability for love is high... you mean with an actual girl? Hogwash! Never the less, statistics ...

Book Recommendations For A Variety of Languages

We have a lot of newbies on the forum these days. Again and again we are asked "What are some good books for language _______?" We all have our favorites and some books lean towards a certain learning style. So one programmer is going to like a particular book more than another programmer might. But besides that little glitch in perspective, there are some books that are generally accepted as ...

Scrolling an Image in C#

On occasion I have seen people asking about making scrolling images. Often times they are asking this question in response to creating their own games to get something like a scrolling background without needing to use a picturebox... which can be pretty bulky. One way to do this is by taking the reigns and controlling the paint event of a control or form. By determining what is drawn and when, ...

Down the Rabbit Hole with C# Serialization

"Whooooo areeeee youuuuu?" No really, who are you and what are you doing on my blog? Oh you are here to read my blog entry on C# serialization to file writing? Fabulous! There may be times where you want to store an object's data from C# to a file for reading later. You can essentially "freeze" the object in time and leave it in a file which later your program ...