public applybuttonform(string s)
{
InitializeComponent();
passingid.Text = s;
}
When I try to do this I get exception
NullReferenceEexception was unhandled
public applybuttonform(string s)
{
InitializeComponent();
if(string.IsNullOrEmpty(s))
{
passingid.Text = s;
}
}
If i do this i don't get an error but this doesn't solve my problem as i have to use that string 's' which was passed from another form. So, what can i do now?