Results 1 to 4 of 4

Thread: [RESOLVED] How to get data from a closed form

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2010
    Posts
    54

    Resolved [RESOLVED] How to get data from a closed form

    Hi all,

    I have a dialog box with about a dozen combo boxes. How can I access the checked results of the combos once the dialog form is closed?

    Thanks
    Paul

  2. #2
    Fanatic Member amrita's Avatar
    Join Date
    Jan 2007
    Location
    Orissa,India
    Posts
    888

    Re: How to get data from a closed form

    save the values in global varibale
    thanks
    amrita

  3. #3

    Thread Starter
    Member
    Join Date
    Aug 2010
    Posts
    54

    Re: How to get data from a closed form

    thanks

  4. #4
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780

    Re: [RESOLVED] How to get data from a closed form

    When the dialog is "closed", it is not got rid off, just the interface is hidden. You can still access properties of that object until you have disposed of it.

    For example heres a snippet of how I have used it

    Code:
        Dim fileOpen As New OpenFileDialog
    
            fileOpen.Filter = "Structure XML files (*.xml)|*.xml"
            fileOpen.Title = "Import Structure File"
    
            If fileOpen.ShowDialog() = DialogResult.OK Then
    
                Dim validate As New ValidateXML(fileOpen.FileName) 'Use a property after the dialog is closed

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width