Dim txt As WinForm.TextBox = e.Form.Controls("出库单号")
Dim txt As String = .Value
txt 是什么?
而且注释标记放错地方了吧?