5
Reply

Pass string to another form. Need a simpler way.

Ask a question
Gustavo

Gustavo

14y
5.2k
1

Hello:
I have the floowing code many many times in my code. Is there a way to code it into 1 or 2 lines?
string NYIMessage = "New";
FormNYI FormNYI = new FormNYI(); // Form Not Yet Implemented Dialog
FormNYI.ShowDialog(
ref NYIMessage);

Answers (5)