Solved

vb.net showdialog

Posted on 2006-07-19
2
555 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 500 total points
ID: 17139087
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
ID: 17139116
I am such an ass.

Thanks
0

Featured Post

Technology Partners: 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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

695 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