Link to home
Start Free TrialLog in
Avatar of jackjohnson44
jackjohnson44

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of TimCottee
TimCottee
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jackjohnson44
jackjohnson44

ASKER

I am such an ass.

Thanks