Sorry for the nub question, but I have been trying to figure this out for over an hour. I use the following code to check for a null text field, and if it is zero, skip the copy to the clipboard and go to the rest of the code.
I donβt understand why I get the exception βThe value cannot be NULLβ. Should he see zero and move on without copying to the clipboard?
private void button_Click(object sender, EventArgs e) { if (textBox_Results.Text != null) Clipboard.SetText(textBox_Results.Text);
source share