As far as I can see, when you create the SearchForm, you call the default constructor, not the one with account form defined as parameter. Later in the code you try to use the variable
rf
, which is
null
because you used the wrong constructor.
If the btnSearch is located on the account form, try the following
private void btnSearch_Click(object sender, EventArgs e) {
SearchForm sf = new SearchForm(this);
sf.ShowDialog();
}
Remember to use the debugger to see using how the code is executed.