In child form I have
public Print()
{
InitializeComponent();
}
public Print(int param)
{
this.se.EditValue = param;
}
and I call it from another form :
private void function
{
int value = GetValue();//it gets an int value
if (value > 0)
{
using (Print printForm = new Print(value))
...
}
I am getting error: System.NullReferenceException: 'Reference to an object not set on an object instance.' How can I fix it?