반응형


This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if((IsFormAlreadyOpen(typeof(fWinHotFix)) == null)) | |
{ | |
fWinHotFix = new fWinHotFix(); | |
fWinHotFix.Show(); | |
} | |
else | |
{ | |
fWinHotFix.WindowState = FormWindowState.Normal; | |
fWinHotFix.BringToFront(); | |
fWinHotFix.Activate(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private Form IsFormAlreadyOpen(Type FormType) | |
{ | |
foreach(Form OpenForm in Application.OpenForms) | |
{ | |
if (OpenForm.GetType() == FormType) | |
return OpenForm; | |
} | |
return null; | |
} |
반응형
'공부 > 개발노트' 카테고리의 다른 글
[C#] WinForm Textbox Hint 표시 하기 (0) | 2021.09.02 |
---|---|
[C#] 유지보수용 프로그램 개발일지 (0) | 2021.08.23 |
C# 부모 폼은 종료하고 새 폼을 유지한 채 여는 방법 (0) | 2020.03.27 |
C# 홈페이지 접속하기 (0) | 2020.03.27 |
C# 최대화 무효화하기 (0) | 2020.03.23 |