Solved

vb.net showdialog

Posted on 2006-07-19
2
541 Views
Last Modified: 2012-06-27
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
Comment
Question by:jackjohnson44
2 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 500 total points
Comment Utility
Hi jackjohnson44,

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

As this is the instance you are referring to.

Tim Cottee
0
 

Author Comment

by:jackjohnson44
Comment Utility
I am such an ass.

Thanks
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now