我已經用我的try catch和額外的消息框編寫了我的代碼,但現在我必須將消息框放入資源文件中,我該怎麼做?將消息框的列表添加到c#中的資源文件中
這是我的代碼:
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.");
}
}
您是指消息框或您正在顯示的文本? – ScruffyDuck
@ScruffyDuck正在顯示的文字 – Amanda