Ziggs
Member-
Posts
16 -
Joined
-
Last visited
Awards
This user doesn't have any awards
Ziggs's Achievements
-
Hey! I'm dynamicly creating listboxes in my program and i want to do something with them in another method but it gives me the NullReferenceException exception. What should i do? public void newTabButton_Click(object sender, EventArgs e) { TextBox textBoxJan = new TextBox(); textBoxJan.KeyDown += new KeyEventHandler(textBoxJan_KeyDown); ListBox LBJan = new ListBox(); tabControl1.TabPages.Add(tabPage); tabPage.Controls.Add(LBJan); tabPage.Controls.Add(textBoxJan); } public ListBox LBJan; public Label sumLabel; public void textBoxJan_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { if (sender is TextBox) { TextBox textBoxJan = (TextBox)sender; LBJan.Items.Add(textBoxJan.Text) } } }
-
http://www.homeandlearn.co.uk/csharp/csharp.html
-
Thanks!
-
Hey! Is there a shorter version of this code in Python. Thanks! check = input("Put in the letter: ") word = "word" if(check == word[0]): print(check) else: print("_") if(check == word[1]): print(check) else: print("_") if(check == word[2]): print(check) else: print("_") if(check == word[3]): print(check) else: print("_")
-
Hey guys! Can somebody post a couple lines of code from the S programming language? I need them for a school assigment. Thanks!
-
Thanks Guys!
-
Hello! I'm building a pc for the first time and i don't understand something. So my question is: Intel I5-4690 BX80646I54690 what does the long number stand for and should i worry about it when i'm looking for deals
-
i heave an infinite loop in the main.
- 6 replies
-
- if statment
- exit
-
(and 1 more)
Tagged with:
-
Hey peeps! I have a problem exiting a c# console application. I want to exit the application by pressing a certain key, doesn't mater which. Any ideas? Thanks!
- 6 replies
-
- if statment
- exit
-
(and 1 more)
Tagged with:
-
Hey guys! i'm wondering if i need any extra fans for this build or are stock fans okay. Intel Core i5-4690, 4x 3.50GHz MSI GTX 960 Gaming 4G, GeForce GTX 960, 4GB Gigabyte GA-H97-HD3 Crucial Ballistix Sport DIMM Kit 8GB, DDR3-1600 ANTEC VP VP600P EC 600W ATX Kingston SSDNow V300 120GB And a used hard drive from my current computer. Thanks
-
Hello! So i'm writing a program that tests your math knowledge. I am a begginer in programming and i need help with a problem. How can i repeat a method 10 times. This is how my method that i want to repeat looks like: public static void Deljenje () { Random numGen = new Random(); int num01 = numGen.Next(1, 21); int num02 = numGen.Next(1, 11); Console.WriteLine(num01 + "/" + num02); int answer = Convert.ToInt32(Console.ReadLine()); if (answer == num01 / num02) { Console.WriteLine("Bravo!"); } else { int responseIndex = numGen.Next(1, 4); switch (responseIndex) { default: Console.WriteLine("To pa ni prav!"); break; case 1: Console.WriteLine("Bolj se potrudi!"); break; case 2: Console.WriteLine("Poskusi znova!"); break; } } } Ps. just ignore the values in Console.Writeline - s. i'm slovenian Thanks
-
What about this one? ANTEC VP VP600P EC 600W ATX
-
So i see that you dont like my PSU any suggestions on that?
-
Thanks for your awesome answer but which of the two choices is better (which one would you choose)?
-
Hello fellow geeks! So im planning on building a gaming computer using components listed down below but i'm having a problem finding a motherboard that's under 100$ (100€) and that supports components down below. Also i am considering MSI H81M-P33 V2 LGA1150 mATX as my motherboard so please tell me if that is a good or a bad idea. The components: PSU - LC-POWER Office LC500H-12 V2.2 500W ATX Ram - Patriot 8GB DDR3 1333-999 SL GPU - ASUS STRIX GeForce GTX960-DC2OC-2GD5 2.0 GB OC OR GTX750Ti SDD - Crucial SSD BX100 (CT250BX100SSD1) 250GB CPU - Intel Core i5 4690K BOX procesor, Haswell Thanks for your answers! Simon
