我想在FORM4(FIBER_OPTIC)上双击txtLocalEastDdfFrom时从FORM7(DDF_FROM)返回值并填充txtLocalEastDdfFrom。此操作适用于FORM1和FORM5,但不适用于FORM4和FORM7。 请帮帮我。
("FORM7=DDF_FROM")
Public Class DDF_FROM
Private Sub btnApplay_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnApplay.Click
FIBER_OPTIC.txtLocalEastDdfFrom.Text = CombDdfFromRow.Text & CombDdfFromBay.Text & "-" & CombDdfFromShelf.Text & "-" & CombDdfFromNumber.Text
Me.Close()
End Sub
End Class
txtLocalEastDdfFrom已开启(" FORM4 = FIBER_OPTIC")
Private Sub txtLocalEastDdfFrom_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtLocalEastDdfFrom.DoubleClick
Dim EastddfAdd As New DDF_FROM
EastddfAdd.Show()
End Sub
答案 0 :(得分:0)
不要仅使用新表单来显示表单使用而是显示实际表单名称,如
Form4.Show()
则...
Form4.TextBox1.Text = Form7.TextBox1.Text