Results 1 to 2 of 2

Thread: Refer to control on parent form

  1. #1

    Thread Starter
    Fanatic Member venerable bede's Avatar
    Join Date
    Sep 2002
    Location
    The mystic land of Geordies
    Posts
    1,018

    Refer to control on parent form

    I have a MDI container form "frmParent". On that form there is a tabstrip control with 2 pages. On one of those pages there is a textbox and a button.

    When the user clicks on the button a child form is opened inside the container form "frmChild" which displays a datagrid. The WHERE clause in the select statement which is bound to the grid comes from the textbox on the Parent form.

    How do I refer to this textbox control ?

    Thanks in Advance

    Parksie

  2. #2
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    You can make a public property for the text property of the textbox or you can use a delegate.

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