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.
C#とWeb サービスをバックエンドとして使用するVS 2010のWin フォーム アプリケーション
何らかの例外が発生した場合にウィンドウフォームに戻る方法
別のクラスにある関数で例外が発生しました。例外が発生した後、何も実行せずにすべてから飛び出すだけです
フォーム以外で例外をキャッチしないでください....
void FunctionInForm() { try { LogicLayer.DoStuff(); //This function and any function it calls should not handle exceptions } catch { //an exception occured, and you are back in your form } }