i am doing a project with visual c++ .In my project I have 2 forms . I want to do some calculation of some data of the form Form1, and i want the result of this calculation to write to a label of Form2.
How to do this?

Recommended Answers

All 6 Replies

An example...

// In Form1 code
{
  Form2->mylabel->text = "Hello";
}

but is not working. i tried

You have to make sure you include the right header file too, post or attach your files, and I will take a look.

i do not know why I can not attache fie. the process fail

You could just post the code if it's not too big. Other than that, I can't help without viewing some code.

i solved that

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.