multiple sdi form communcation

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Matt

    multiple sdi form communcation

    I have one sdi form that instantiates the other. I am trying to figure out
    how to make the second form feedback information to the first after the user
    enters it on the second form. I was thinking I should use callbacks but I
    can't seem to see how. does anyone have a better idea or some sample code
    for using callbacks for this task?

    Thanks in advance


  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: multiple sdi form communcation

    Matt,

    You have a number of options available to you. The first would be to
    pass a reference of the parent form to the child (through the constructor,
    or by setting a property, or calling a method). Then, the child form can
    call methods on the creator.

    The other option you have is to have the child form expose events which
    will be handled by the form that created the child form. This would lead to
    greater decoupling between the two, and is the better solution, in my
    opinion.

    Hope this helps.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m


    "Matt" <matt@icecube.c om> wrote in message
    news:OIWUAQlREH A.1448@TK2MSFTN GP11.phx.gbl...[color=blue]
    > I have one sdi form that instantiates the other. I am trying to figure[/color]
    out[color=blue]
    > how to make the second form feedback information to the first after the[/color]
    user[color=blue]
    > enters it on the second form. I was thinking I should use callbacks but I
    > can't seem to see how. does anyone have a better idea or some sample code
    > for using callbacks for this task?
    >
    > Thanks in advance
    >
    >[/color]


    Comment

    Working...