CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2002
    Posts
    21

    Disposing the parent form

    Hello all,
    I am fairly new to C# so sorry if this sounds stupid.

    I have 2 forms. Form1 has a button on it, which when pressed shows Form2 (as a dialog box). I have another button on Form2. When the user presses Form2 I want it to dispose of itself (Form2) and also its parent (Form1). How can I do this?
    Thanks in advance.

  2. #2
    Join Date
    Feb 2002
    Posts
    21

    Thumbs up

    Please disregard. I think I have this figured out.

  3. #3
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890
    you have an edit option to edit your own post. so no need to create new post for that.

    hope this helps to you,
    Paresh
    - Software Architect

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

Featured