• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 572
  • Last Modified:

vb.net showdialog

I am displaying a form, with a textbox and a property saveName.
When I try to call that function after the form closes, there is no value
in the property.

        Dim saveAsForm As New FrmSaveTest()
        If saveAsForm.ShowDialog = DialogResult.OK Then
            name = Trim(FrmSaveTest.saveName)
            If name = "" Then Exit Sub
        Else
            Exit Sub
        End If
0
jackjohnson44
Asked:
jackjohnson44
1 Solution
 
TimCotteeCommented:
Hi jackjohnson44,

You should be using
name=Trim(saveAsForm.saveName)

As this is the instance you are referring to.

Tim Cottee
0
 
jackjohnson44Author Commented:
I am such an ass.

Thanks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now