2013-10-30 2 views

답변

1

을 언급 한 바와 같이. [MSDN]

splitContainer1.Orientation = Orientation.Horizontal; //Or Orientation.Vertical 

사람 :

당신은 부모의 크기 또한

splitContainer1.Dock = DockStyle.Fill //Sets the size to the one's of the parent container 

스플리터는 다음 코드를 사용하여 수직 또는 수평의 경우 사용자가 설정할 수에 폭과 높이를 설정하기 위해 Dock-Property을 사용할 수 있습니다 사용할 수있는 SplitContainer의 테두리 표시 BorderStyle-Property :

splitContainer1.BorderStyle = BorderStyle.Fixed3D; //3d-Effect 
//BorderStyle.FixedSingle; //Shown in the example 
//BorderStyle.None; //No borders 

마지막으로 다음 결과를 얻을 수 있습니다 : Result

+0

VC# 초보자의 질문을 trivializing 주셔서 감사. ;) –

+0

반갑습니다. 누구나 어딘가에서 시작해야합니다.) 그러나 작은 조언 : 여유 시간이 있다면 사용 가능한 컨트롤을 살펴보고 MSDN에서 추가 정보를 확인하십시오. 그렇게하면 대부분의 컨트롤에 익숙해집니다. –

+0

좋습니다. 나는 MS 프로그래밍 세계의 일반적인 패턴을 단지 familarizing하고있다. –