C
C#2w ago
Nightswyng

✅ Input boxes not working

This is an assignment I am currently working on, everything runs without errors but I can't get the white boxes to work to input numbers. What am I missing? The goal is to put numbers in tickets sold and use calculations to see how much revenue is generated. I can't test my calculations since I can't input the numbers.
No description
25 Replies
Pobiega
Pobiega2w ago
What exactly do you mean by "can't input the numbers"? @Nightswyng
Nightswyng
NightswyngOP2w ago
I don't get a response from the white boxes when running the program, so I can't enter numbers in it
Nightswyng
NightswyngOP2w ago
No description
Nightswyng
NightswyngOP2w ago
I need to be able to put the sale numbers into the ticket sold boxes for each class
Pobiega
Pobiega2w ago
again, what does "don't get a response" mean here? textboxes dont usually respond while the program is running, can you click them? do they get focused? can you tab to them? can you type text in them?
Nightswyng
NightswyngOP2w ago
No i cant write anything in them while the program is running the buttons work, calculate, clear, exit, those respond but I don't get a response otherwise
Pobiega
Pobiega2w ago
okay, can you show the content of the "Form1.Designer.cs" file and please use $code
MODiX
MODiX2w ago
To post C# code type the following: ```cs // code here ``` Get an example by typing $codegif in chat For longer snippets, use: https://paste.mod.gg/
Nightswyng
NightswyngOP2w ago
I dont know what that is
Nightswyng
NightswyngOP2w ago
BlazeBin - dfpswtcccznw
A tool for sharing your source code with the world!
Nightswyng
NightswyngOP2w ago
I hope that worked, I am still very green to this
Pobiega
Pobiega2w ago
Yep thats what I wanted Let me look it over
Nightswyng
NightswyngOP2w ago
Thank you
Pobiega
Pobiega2w ago
Well, for starters I can reproduce it locally with your file oooh I see it
Sehra
Sehra2w ago
they are labels, not textboxes
Pobiega
Pobiega2w ago
No description
Pobiega
Pobiega2w ago
indeed a Label is only for displaying something, not for taking input you need to use the TextBox control type
Nightswyng
NightswyngOP2w ago
THANK YOU! I couldn't figure out what i did wrong!
Pobiega
Pobiega2w ago
🙂
Sehra
Sehra2w ago
you also want to look a bit on the calculation of the total
Nightswyng
NightswyngOP2w ago
What do you mean with the calculations? did I fill that out wrong too?
Pobiega
Pobiega2w ago
yep, prices are gonna be a bit inflated as it currently is 😛 you are doing a certain calculation twice
Nightswyng
NightswyngOP2w ago
ok thank you I will review that, I just couldn't get that far to test it out I caught it! Thank you so much again!
Pobiega
Pobiega2w ago
Please /close the thead when you are done 🙂 and if you need more help, open another
Nightswyng
NightswyngOP2w ago
Sorry was editing, I will close it now

Did you find this page helpful?