Saturday, August 28, 2010

Record Source games in 1280×720 Resolution


Start Steam -> Go to Library -> Right click on any Source game and go to Properties -> Set launch options ->
-> Type in "-w 1280 -h 720"(without quotes) -> Hit OK -> Play the game.




NOTE: If you already have a 1280 width, just type in "-h 720".

Friday, August 6, 2010

C# Tutorial: Random Number Generator

Here is the code

int count; Random rnd = new Random();
///////////////////////////////////////////////
count = 0; label4.Text = ""; timer1.Start();
///////////////////////////////////////////////
++count;
label4.Text = rnd.Next(Convert.ToInt32(textBox1.Text), Convert.ToInt32(textBox2.Text)).ToString();
if (count > Convert.ToInt32(textBox3.Text)) { timer1.Stop(); label4.Text = "Your number is: " + label4.Text; }

Or download the solution