Why does this variable assignment keep returning the error message "Object Reference not set to an instance of an object"?
This field is on the same form attached to this code. When I type type code it it pulls it in from this portion of the project. I have even retyped in the entire project thinking perhaps the code was corrupt. I have been copying and pasting code to a dozen or so programs today and this is the only one behaving this way.
txtOptType.Text = "Enter Transaction:";
catch (Exception ex)
string eMsg = "001z: ERROR: " + ex.Message;
if (stackTraceWanted) eMsg += "\n" + ex.StackTrace;