如何在C#中将信息从Form1传送到Form2 [英] how to take information from form1 to form2 in c#

查看:606
本文介绍了如何在C#中将信息从Form1传送到Form2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用Windows表格准备了一份调查表.我想计算用户获得的总分.我已经定义了一个变量调用计数,并使其递增以获取正确答案.但是它仅以一种Windows形式计算分数.在问卷中有4种形式.我想知道如何计算所有4种形式的总成绩.如果您能给我一个提示,我将非常感激...谢谢您

解决方案

希望您想知道如何从中传递值一种形式到另一种形式

请参考

将值从1种形式转换为其他形式在相同的解决方案中 [ ^ ]


i have prepared a questionnaire using windows forms. i want to calculate the total score that the user has obtained. i have defined a variable call count and made it to increment for correct answers. but it calculate the score only in one windows form. In the questionnaire there are 4 forms. i want to know how to calculate the total score for all 4 forms. I would be thankful to you if you can kindly give me a hint to do it... thank you

解决方案

Hope you want to know how to pass a value from one form to another

Please refer

Retrievng values from 1 form to other form in the same solution[^]


这篇关于如何在C#中将信息从Form1传送到Form2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆