how to add values form multiple labels to ane label

how to add 4 subjects marks in one label named total marks

Page 1 of 1

2 Replies - 5537 Views - Last Post: 09 March 2010 - 12:35 PM Rate Topic: -----

#1 mueen   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 08-March 10

how to add values form multiple labels to ane label

Posted 08 March 2010 - 08:14 PM

hey

am a undergraduate student from malaysia have some problem in my project i want to add the marks of five subjects in one label named total marks, and that will display total marks when subjects are selected from database i.e. SQL .


thanks

mueen
Is This A Good Question/Topic? 0
  • +

Replies To: how to add values form multiple labels to ane label

#2 PsychoCoder   User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1659
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: how to add values form multiple labels to ane label

Posted 08 March 2010 - 09:11 PM

Sorry but we can not give you the entire code to solve your problem. We are here to assist in solving problems with code you have written, with any error messages you are getting or what isn't working the way that you expect it to, we would be more than happy to help you with those problems. If there is a topic that you don't understand we would be more than happy to help you with that as well. Make sure to post any code with in code tags like below.

:code:

Be sure to visit our tutorial and snippet areas or read the FAQS at the top of the forums. Also, take a moment to read the rules about posting topics.

Thank you for helping us to help you solve your problem.
Was This Post Helpful? 0
  • +
  • -

#3 Core   User is offline

  • using System.Linq;
  • member icon

Reputation: 784
  • View blog
  • Posts: 5,101
  • Joined: 08-December 08

Re: how to add values form multiple labels to ane label

Posted 09 March 2010 - 12:35 PM

You might want to start with this tutorial:
http://www.dreaminco...wtopic32392.htm

Once you build the statements that select the needed values, you can create an array of double (assuming that your grades are represented by decimal values). Once the array is populated, you could run through it and add the values to the label control sequentially, converting each one of them ToString().
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1