About form question ??

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

    #1

    About form question ??

    Dear All,

    I have two forms and each form has one button.
    When I click the button 1(on form1), the form1 will hide and the form2 will
    show.
    My question is how should I do if I want to click the button2(on form2) the
    form2 will hide and the form1 will show ?

    Thanks,
    PP


  • Mark Jen [MSFT]

    #2
    Re: About form question ??

    PP,

    How do you have the form objects set up? If form2 is being called as a
    dialog from form1 (using the Form.ShowDialog (owner) call), you can get a
    reference to form1 from form2 with a call to this.ParentForm

    If you have some code you could post up, that would be helpful.

    HTH,
    -Mark

    "MingChih Tsai" <mjt@seed.net.t w> wrote in message
    news:uiC3qz2VDH A.2352@TK2MSFTN GP12.phx.gbl...[color=blue]
    > Dear All,
    >
    > I have two forms and each form has one button.
    > When I click the button 1(on form1), the form1 will hide and the form2[/color]
    will[color=blue]
    > show.
    > My question is how should I do if I want to click the button2(on form2)[/color]
    the[color=blue]
    > form2 will hide and the form1 will show ?
    >
    > Thanks,
    > PP
    >
    >[/color]


    Comment

    Working...