Results 1 to 3 of 3

Thread: Forms and controls

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2002
    Posts
    14

    Forms and controls

    I have a form that I open using

    dim frm as new FrmMain()
    frm.show

    from that form I open another form

    dim frm as new FrmEdit()
    frm.show

    now how do i change the controls on the first form from the second form?

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    You can pass a reference of the main form to the newly created form, and I have shown how to do that in the past here if you search for it.

    But, I was browsing the MSDN library the other day, and found this.
    http://msdn.microsoft.com/library/de...adingtonet.asp

    It shows you exactly how to do it, and it is probably a better way. I would give that a good read.

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2002
    Posts
    14

    Thanks

    Cheers for that, just what I was looking for!

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