전면

2012-10-05 2 views
1

가능한 중복에 창을 가져 :
Restore WindowState from Minimized전면

나는 일반적으로 트레이 표시 줄에 숨겨진 창을 가지고있다.

그럼 숨겨져 있다면 보여주고 싶습니다.

이미 열었 으면 바로 앞으로 가져오고 싶습니다.

작업 표시 줄로 최소화하면 확장하고 앞으로 가져오고 싶습니다.

this.Show(); 
this.Activate(); 
this.ShowInTaskbar = true; 
this.TopMost = true; 
this.Focus(); 

을하지만이 최소화 된 경우는 확장되지 않습니다

지금 나는 내 공연 방법이 있습니다.

해결 방법?

+0

나는 당신의 제목을 편집했습니다. "[제목에"태그 "가 포함되어 있어야합니까?] (http://meta.stackexchange.com/questions/19190/)"합의가 "아니오, 그렇지 않아야합니다"로 표시되어야합니다. –

답변

2

를 참조하십시오.

this.WindowState = FormWindowState.Maximized; // To maximize 
this.WindowState = FormWindowState.Normal; // To restore 
3

시도 FormWindowState 열거의 자세한 내용은 this.WindowState = FormWindowState.Maximized

를 추가, 그것을가 최소화되어있는 경우, 당신은 WindowState 속성을 사용하여 창을 복원해야합니다 here

+1

아마도'MaxWimed'를 통해'FormWindowState.Normal'과 함께 갈 것입니다. – paul

2
if (this.WindowState == FormWindowState.Minimized) 
    this.WindowState = FormWindowState.Normal;  

this.Show(); 
this.Activate(); 
this.ShowInTaskbar = true; 
this.TopMost = true; 
this.Focus(); 
관련 문제