G
Guest
I have the following line of C# code:
MessageBox.Show(filesThatDoNotExist, "Files Not Found", MessageBoxButtons.OK);
This line generates the following warning when I select "Run Code Analysis"
CA1303 : Microsoft.Globalization : Form1.btnGenerateDocuments_Click(Object,
EventArgs):Void passes a literal as parameter 2 of a call to
MessageBox.Show(String, String, MessageBoxButtons)
ialogResult. Retrieve the
following string argument from a resource table instead: 'Files Not Found'
When the warning talks about:
"Retrieve the following string argument from a resource table instead:
'Files Not Found' "
Are they talking about something that allready exists or a resource I have
to create?
I kept expecting to find something like MessageBoxButtons.Something, but
didn't find anything like that with the string "Files Not Found"
Thanks,
MessageBox.Show(filesThatDoNotExist, "Files Not Found", MessageBoxButtons.OK);
This line generates the following warning when I select "Run Code Analysis"
CA1303 : Microsoft.Globalization : Form1.btnGenerateDocuments_Click(Object,
EventArgs):Void passes a literal as parameter 2 of a call to
MessageBox.Show(String, String, MessageBoxButtons)

following string argument from a resource table instead: 'Files Not Found'
When the warning talks about:
"Retrieve the following string argument from a resource table instead:
'Files Not Found' "
Are they talking about something that allready exists or a resource I have
to create?
I kept expecting to find something like MessageBoxButtons.Something, but
didn't find anything like that with the string "Files Not Found"
Thanks,