Posts tagged with csharp
Published 26 August 2011
in archive
with tags
gamedev
,
xna
,
csharp
So just to give you an example of how clean you can make your code, let us look at a very simple menu screen, which simply asks for any key to be pressed. As you can see, it's -very- clean.
Continue reading …
Published 15 April 2011
in archive
with tags
arduino
,
remotecontrol
,
csharp
I will comment this more when I get time, just posting the code for a forum right now!
Continue reading …
Published 17 December 2010
in archive
with tags
winforms
,
csharp
Another quick-snip here. Add select all (ctrl+a) to a regular textbox in less than 7 seconds, and here's how. Using the KeyDown event, look for control and A, and then select all, suppressing the keypress to stop the pingggggg noise:
Continue reading …
Published 9 November 2010
in archive
with tags
regex
,
csharp
Here's a nifty little bit of code I just wrote while writing a console input handler. Sometimes you will want to split up a string by a space, but then how do you input more than one word as a single argument? You put it in quote marks, but then how do you split those separately? Like this:
Continue reading …
Published 21 September 2010
in archive
with tags
abstract
,
abstractclass
,
csharp
Blogular activity has suffered a little here; but setting up a workshop and devising plans to build steam engine in said workshop will do that to you. Today some simple code, written to simplify showing abstract classes. Every tutorial I see they throw in stupid code that isn't really needed to show the primal functionality of abstract classes. So here is an example that has nothing more than what it needs.
Continue reading …