2014-02-26 1 views
0

mdiparent frmPersons 텍스트 상자에 다음 나는 내가 mdiparent가 frmPerson에 Form2를의 textbox.text을 복사 할 방법을 Form2가 textbox.textvb.net Form2를 textbox.text 내가 mdiparent로 frmPerson이

을 가지고 Form2를이 여기

여기

Dim frmPersons As New frmPersons() 
    'Set the Parent Form of the Child window. 
    frmPersons.MdiParent = Me 
    'Display the new form. 
    frmPersons.Show() 

가 버튼 이벤트가있는 정상을 Form2입니다 mdiparent의 내 선언입니다 frmPersons.TextBox1.Text = form2.TextBox1.text

내가 Form2를에서 버튼을 클릭하면

는 frmPerson의 textbox1.text은 효과 는 어떻게해야합니까 frmPersons 양식

에 Form2를에서 콘텐츠를 복사 didnt가이 없다? ... 당신은

frmPersons.TextBox1.Text = Me.TextBox1.text 
frmPersons.Refresh() 

또는 ...이처럼해야한다, 당신이있어 양식의 이름을 참조하지 않아야 당신을 Form2의 버튼 클릭 이벤트에 미리

답변

0

을 U 감사합니다 단지 ...

frmPersons.TextBox1.Text = TextBox1.text 
frmPersons.Refresh() 
+0

당신의 대답은 잘하지만 부모 폼 활성 mdiparent –

+0

는 "활성 mdiparent는"무슨 뜻입니까? 모달 모드에있는 것처럼? –

+0

전체 양식이 다시 그리기를 할 수 있도록 코드를 편집 했으므로 작동 할 수 있습니다. –

관련 문제