I want to use show dialog () to display a message in another form. How do I show the message? Here's what I've tried.
//return total
return total;
//change total to string
total = total.ToString;
//create an instance of the MessageForm class
MessageForm myMessageForm = new MessageForm();
//Display the form
myMessageForm.ShowDialog(total);
This gives me an error message. i don't know how to go about showing the total in the other form. Any suggestions?