Results 1 to 22 of 22

Thread: Multiple Form Data Sharing (or control manipulation)

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2002
    Posts
    15

    Question Multiple Form Data Sharing (or control manipulation)

    I've been doing VB6 for about 5 mo's casually, and VB.net for about 3 days hardcore, so this may be a basic question but...
    I have a question about controlling forms from within other forms in VB.NET. First of all I've found that in the old VB6.0 you could cycle through forms and change the controls with a statement like:

    Dim frm As frmName 'Your forms name here
    For Each frm In Forms
    frm.caption = "test"
    Next

    This this not doable in .NET. How can this be achieved in VB.net? And is there a simple way. I've done lots of looking through books, and have found a way to communicate and control one form with another form via raising events. What i've found though is that the event can only be raised in your active form and maybe in the form/class that the event is defined in, but it will NOT cycle through all of your forms and trigger the the very same event.

    I also make the instances of my forms through code. I do not have a separate design form for each form I open, and this is where the problem really lies because I can not reference each newly created(from code) form and their controls. And I have many forms to manage.

    I'd REALLY appreciate any help with this.. just a point in the right direction even.

    And arent' those splitter bars and docking/anchoring functionality GREAT!!
    Last edited by Bucho; Aug 30th, 2002 at 07:56 AM.

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