こんにちは私はおそらくあなたが推測するようにC#に非常に慣れていません、そして私は次のエラーを受け取ります:
Error 1 'customer_details_form' is a 'namespace' but is used like a 'type'
値が返された場合はフォームを閉じて、別のフォームを開きたいです。しかし、私は何を入れるのか、つまりフォームは何と呼ばれるのか悩んでいます。それは私が使用すべき名前空間か何か他のものですか。
public void button1_Click(object sender, EventArgs e)
{
string fileName = string.Format(tblastname.Text);
if (File.Exists(fileName))
{
MessageBox.Show("this customer already exsists");
}
else
{
MessageBox.Show("No file found, please create new customer");
home_form f2 = new home_form();
this.Hide();
f2.ShowDialog();
//if false bring up new customer form.
customer_details_form f4 = new customer_details_form();
this.Hide();
f4.ShowDialog();
}
}