March 12th, 2013, 11:31 AM
how to pass value from one form to another?
i am trying to create a form app with multiple forms. there is a form i'm using as "search". i want to take the value of the textbox in search-form and pass it to another form which shows the result of the search. i've tried to include search-form.h in the form of the result but it returns an error.
to conclude, i want the form PatInfo to open an receive the "ks" var. thanks in advance!!
String ^ key;
key = searchbox->Text;
std::string ks = marshal_as<std::string>(key);
PatInfo ^ form = gcnew PatInfo;
MessageBox::Show( "Please try again.");
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!