form send a message to form

can a windows form send message (string text) to another windows form

how can i do this

thanks




Answer this question

form send a message to form

  • SunilBansal

    Yes, you can do that indirectly.

    For example, let form A have a method GetMessage and from Form B you can just call A.GetMessage ("Any message"); In GetMessage you can process the string the way you want

    Of course the actual implementation might be harder but this is just an idea.

    Thanks,
      Ayman Shoukry
      VC++ Team

  • form send a message to form