I want to know how to transfer the string variable value from C# to another form. Please let me know!!
c#
It's not a best practice, but it's possible with a stain.
Form 1 and Form 2
To the form cs file that you want to hand over the variable
public static string name;
It's defined in this way. For example, suppose you define Form 2 like that
Next, when you give the data,
Form2.name = "data";
You can give it like this.
© 2024 OneMinuteCode. All rights reserved.