c# - Input from main form to another form -
i want receive input 2nd form main form.
i've tried generate method in 2nd form, that's got:
internal form2 method(string value) { throw new notimplementedexception(); }
the value 1st form should passed "value" variable.
how return "value" string, can use it?
by way, don't know how work "internal" access modifier.
you can create 1 class
public class valuetransfer { public string value1{get;set;} }
now can create object of valuetenasfer from1
valuetransfer v=new valuetransfer(); v.value1="string";
and pass class object other method
Comments
Post a Comment