Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は学術プロジェクトを行うために MDI を使用しています。
ShowDialog()私の問題は、以下に示すように例外がスローされたフォームのオブジェクトを呼び出せないことです。誰もがこの問題を解決するのに役立ちます。
ShowDialog()
呼び出しているフォームが MDI アプリケーションの mdichild であるため、エラーが発生しています。エラーを取り除くにTopLevelは、子フォームのプロパティを に設定しますfalse。
TopLevel
false
frm.TopLevel = false;