我已经用我的 try catch 和额外的消息框编写了我的代码,但是现在我必须将消息框放入资源文件中,我该怎么做?
这是我的代码:
public void btnUpload_Click(object sender, EventArgs e)
{
try
{
// in the filepath variable we are going to put the path file that we browsed.
filepath = txtPath.Text;
if (filepath == string.Empty)
{
MessageBox.Show("No file selected. Click browse and select your designated file.");
}
}