So I need to add together four integers that are from other windows forms other than the main one. Way too much code to post all of it

pointsfinal = Form3.atally2 + Form2.atally1 + Form1.atally + atally3;

this does not work.

Recommended Answers

All 4 Replies

they are all in the same Visual Studio Project.

So I need to add together four integers that are from other windows forms other than the main one. Way too much code to post all of it

pointsfinal = Form3.atally2 + Form2.atally1 + Form1.atally + atally3;

this does not work.

Hello I'm a bit new in C#. Are you trying to get the values simultaneously? How about saving them first in a database? Or using constructors per page until you reach the final page?

He, my refrigerator does not work, tell me how to solve it!
This is the same sort of question you are posing.
Please tell us EXACTLY what is not working whit your code and we'll be glad to help you out.:)

commented: Plug it in!! :) +4

Figured it out on my own.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.