C# VS 2008 windows app HOW DO I RETURN FROM A VOID METHOD?
In this small code snippet if I have the user click canel how do I return back to whrever in the program they were before this method. It is void so I cannot use return, break doesn't do it? Thoughts? Thanks!
public void btnFullSearch_Click(object
sender, EventArgs e)
{
MessageBox.Show(" Continue?", "Test", MessageBoxButtons.OKCancel
, MessageBoxIcon.Question);
RecursiveSearch.RecSearch(
txtShare.T
ext, txtFile.Text);
}
Start Free Trial