Top Geary - 27th May 2016 at 12:10 AMI've learnt to ignore when you say derogatory things to me
Nobody will ever win the battle of the sexes...there\'s too much fraternizing with the enemy.-Henry Kissinger
i had kinda hope speakman had died, what a pity
make it display something in the text box when you hit the button (textbox.text = "blah")
Quote from: toofast;1334448 make it display something in the text box when you hit the button (textbox.text = "blah")Bullshit.Everyone knows the text MUST be "Hello world."These are the rules.
I'm not quite sure how to make the numbers work i.e, if you press 8, Then press 3, I have no idea how to make it change from 8 to 83...Unless I times 8 by 10... oooobrb
x = x * 10 + 1;label1.Text = x;
Quote from: Pyromanik;1334460Quote from: toofast;1334448 make it display something in the text box when you hit the button (textbox.text = "blah")Bullshit.Everyone knows the text MUST be "Hello world."These are the rules.Those be the rules in the console. The only rule for text boxes is there are no rules. They be wild.
Dang, this programming shit sounds interesting. The most experience I have with it though is source engine scripting. I'm also interested in modelling. I'm really not sure what type of brain I am that would make me better for one or the other. Being able to make game characters do certain stuff sounds cool to me, but making a gun or a model doesn't sounds to bad either. Well, I've gotten pretty good at scripting if that's any help, and I find getting it all to work together enjoyable. I have now gone over the top and use a fast setting change and weapon use script for every character in TF2.And then there's website design, which doesn't sounds too bad either.Dang, what to do?
I can no longer set a label's caption to a number, wtfwtfwtfwtfMight just wait for Problems.I've set a interger variable with int x, z;and i'm trying to edit the x value everytime a button is pressed, This is the coding I wrote for the number 1 button.Code: [Select]x = x * 10 + 1;label1.Text = x;It doesn't seem to like the fact that I want to "implicity convert type 'int' to 'string'"Why nottttttttttttttttttttttttttttttttttttttttttttt
Don't you mean sprintf(). atoi() is string to int. But yea, thats why i like c#. It has a lot of decent methods already set up, to do some of the more tricky stuff, so you don't need to waste time writing all of the low level things.
Quote from: toofast;1334534Don't you mean sprintf(). atoi() is string to int. But yea, thats why i like c#. It has a lot of decent methods already set up, to do some of the more tricky stuff, so you don't need to waste time writing all of the low level things.char* to int and yes, I know.And no, I didn't mean sprintf, I meant itoa()
Code: [Select]x = x * 10 + 1;label1.Text = x;
x=x*10+1;label1.setText(""+x);