Results 1 to 2 of 2

Thread: showdialog - how to access parent form

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2006
    Posts
    180

    showdialog - how to access parent form

    Hi,

    I have a form, it has two textboxes txtName, txtAddress, it also has a button, the button opens another form as a dialog

    Dim select as new frmSelect
    select.showdialog

    On the select dialog it displays a datagrid with a list of customers, user double clicks on an entry and I trap that event, I then want to update the textboxes on the parent form with the values fromt the selected row in the grid.

    How do I access the parent forms controls/properties?

    Thanks

  2. #2
    Addicted Member Crushinator's Avatar
    Join Date
    Jan 2006
    Location
    The Dark Side of the Moon, MD
    Posts
    179

    Re: showdialog - how to access parent form

    This Link may help you, it's part 2 of a 4 part Article explaining how to work with Forms in .Net

    Link
    Accessing Controls on Other Forms
    Using Framework 2.0, VB.Net 2005.

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