• Help with basic c#
    59 replies, posted
I pasted my code and saved it. I uploaded it. it works. Are you done bitching or do you want to find more reasons to bitch? nag nag nag, all you do. Grow some testicles.
You are wrong. You know you are wrong and you don't want to admit it. Now since you don't know what else to say you start flaming. I never said anything against you or insulted you in any way but calming that something is correct because you can't admit you're wrong is just too much. You have to realize that you don't help if you post something that isn't true, you do the exact opposite. If OP used your code and it didn't work he would think that he's doing something wrong and waste his time trying to figure out what.
I'm not wrong. Let me explain: I wrote that code in visual studio, and pasted it into Facepunch after I tested it. It worked. You did not believe me, and so I uploaded a file with the code I previously used. Visual Studio [I]auto-corrected [/I]it or something. I don't know. It's not my fault. If he still seriously needs help, he can use my [B]second[/B] code post, since that one is correct.
[QUOTE=Chad Mobile;22532922]I'm not wrong. Let me explain: I wrote that code in visual studio, and pasted it into Facepunch after I tested it. It worked. You did not believe me, and so I uploaded a file with the code I previously used. Visual Studio [I]auto-corrected [/I]it or something. I don't know. It's not my fault. If he still seriously needs help, he can use my [B]second[/B] code post, since that one is correct.[/QUOTE] Why would it need to auto-correct it or something if the code was not incorrect? It's not about proving you wrong, it's about fixing a little error that's all. If you want to tell it's 'correct enough' since your IDE fixes the errors, then you must realize that it is not good style nor can you relay on everyone using the same IDE with that feature enabled. It's really more in case someone else comes by and tries that code. It's also not wrong if you can learn from that mistake. Making mistakes and learning from them is usually a really good way to memorize stuff.
Okay, thank you.
[QUOTE=Chad Mobile;22533394]Okay, thank you.[/QUOTE] No it's actually about proving you wrong. You really should try programming something without Visual Studio, you might learn how C# actually works as opposed to hacking your way through and hoping VS auto-corrects your trashy programming.
Oh dear, you've insulted me. Whatever will I do D:
[QUOTE=Chad Mobile;22543396]Oh dear, you've insulted me. Whatever will I do D:[/QUOTE] here's hoping you'll go away
How about you stop being a jackass?
[code] private void button1_Click(object sender, EventArgs e) { Form2 form2 = new Form2(); form2.Show(); this.Hide(); }[/code] is NOT equal to [code] private void button1_Click(object sender, EventArgs e) { Form2 form2 = new Form2(); Form2.Show(); This.Hide(); }[/code] The sooner you realize that chad and admit you were wrong, the better. Oh, and visual studio does no such 'fixing', unless you have an addon that specifically fixes stupid errors like it. Try your code exactly as you typed it, it WILL throw 2 errors, and will not build.
Is Chad honestly arguing that Form2 == form2 ? Jesus christ.
[QUOTE=Chad Mobile;22545579]How about you stop being a jackass?[/QUOTE] Whoa.. no need for hostility here sir.
[QUOTE=gparent;22548900]Is Chad honestly arguing that Form2 == form2 ? Jesus christ.[/QUOTE] That, and This == this. But yes, that's his argument.
I never had an argument...I pasted code from Visual Studio after testing it and everyone threw a shitstorm, and then I found out my Visual Studio auto-corrected it or something...
[QUOTE=Chad Mobile;22549720]I never had an argument...I pasted code from Visual Studio after testing it and everyone threw a shitstorm, and then I found out my Visual Studio auto-corrected it or something...[/QUOTE] "or something" == "I didn't test it or use my brain at all, and now I'm refusing to admit it"
My God, are you mentally retarded [U][B]please say yes.[/B][/U] I [B]DID[/B] test it, and it [B]DID[/B] work. If you're going to be mentally challenged, go to 4chan or something. [highlight](User was banned for this post ("Trolling. Your code doesn't work - C# is case sensitive, but VS auto-corrects for you as you type. This, however, doesn't make your code correct. So drop it." - SteveUK))[/highlight]
[QUOTE=Chad Mobile;22550300]My God, are you mentally retarded [U][B]please say yes.[/B][/U] I [B]DID[/B] test it, and it [B]DID[/B] work. If you're going to be mentally challenged, go to 4chan or something.[/QUOTE] You could not have compiled it as typed. Are you slow? Perhaps you didn't read the part of the thread where we point out exactly how it would not work?
[QUOTE=Chad Mobile;22550300]My God, are you mentally retarded [U][B]please say yes.[/B][/U] I [B]DID[/B] test it, and it [B]DID[/B] work. If you're going to be mentally challenged, go to 4chan or something.[/QUOTE] It's impossible. That's not valid C# semantics and syntax.
Did you also happen to read the other part of my posts. It's not invalid syntax, I had two little things mixed up (And later fixed..) and Visual Studio corrected it without me knowing.
Sure, it's not invalid syntax. It wouldn't compile though.
[img_thumb]http://dl.dropbox.com/u/5502511/wrong.png[/img_thumb] how about admitting you're wrong
That was a really bad example since you don't even have Form2 in your project... (hehe Le type)
[QUOTE=Chad Mobile;22550300]My God, are you mentally retarded [U][B]please say yes.[/B][/U] I [B]DID[/B] test it, and it [B]DID[/B] work. If you're going to be mentally challenged, go to 4chan or something.[/QUOTE] I'm not even fluent in Visual C#, but the code you posted is so blatantly wrong. And why the hell do you keep denying it? I think you're the mentally retarded one here. Also, copy and paste your code, and try to build. It will show an error.
I can even see This getting corrected to this, and that's far-fetched. But Form2 and form2 BOTH mean something, if anything corrected that error it would have to know what you are trying to do.
I think the bigger problem here is that Form2 and form2 aren't in the same typing case. You should try and use the same way of typing across your entire code. Then you wouldn't have problems like this. I also didn't know that VS C# could change class names from Form1 to Form2. Like Chad's code did.
[QUOTE=166291;22565473]I think the bigger problem here is that Form2 and form2 aren't in the same typing case. You should try and use the same way of typing across your entire code. Then you wouldn't have problems like this. I also didn't know that VS C# could change class names from Form1 to Form2. Like Chad's code did.[/QUOTE] Actually, the class is called Form2, and the instance of that class is form2. The case difference is intentional to keep the two apart, but with the same name.
chad honestly give up no section likes you
[QUOTE=Big Blue;22573516]chad honestly give up no section likes you[/QUOTE] I think you mean [sluggo] now. [url=http://www.facepunch.com/showpost.php?p=22573564&postcount=7]He's even saying he can't be banned in oify.[/url]
I remember chad in the Lua section. So glad he moved here, he's like the little kid who every teacher hates to get as he moves up the grades.
[QUOTE=ShaRose;22574111]I think you mean [sluggo] now.[/QUOTE] way to go idiot
Sorry, you need to Log In to post a reply to this thread.