Forms: Close Dialog weird problem

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

    Forms: Close Dialog weird problem

    Hello everybody. I'm experiencing an strange problem with WinForms
    which someone, if possible, could help me to deal with.

    We have a windows application which serves as a menu, calling other
    forms in different class library, all called as Modal Dialog.
    In one of this forms, I have another call to a Modal. When this second
    modal is closed, automatically is closed the form who called it.
    I can't understand how this is happening. After the end of the sub
    which calls the second modal the program goes to closing event.
    I'm closing the second modal explicity (me.close) and showing it with
    a instance.show() .

    could some help me?
    (sorry for the bad english)

    []'s
  • Armin Zingler

    #2
    Re: Forms: Close Dialog weird problem

    "Thiago Macedo" <thiago.chili@g mail.comschrieb
    Hello everybody. I'm experiencing an strange problem with WinForms
    which someone, if possible, could help me to deal with.
    >
    We have a windows application which serves as a menu, calling other
    forms in different class library, all called as Modal Dialog. In one
    of this forms, I have another call to a Modal. When this second
    modal is closed, automatically is closed the form who called it. I
    can't understand how this is happening. After the end of the sub
    which calls the second modal the program goes to closing event. I'm
    closing the second modal explicity (me.close) and showing it with a
    instance.show() .
    Do you show the 3rd Form in a Button_Click event? If yes, check the
    DialogResult property of the Button. If it is not 'None', the Form
    closes automatically.


    Armin

    Comment

    • Thiago Macedo

      #3
      Re: Forms: Close Dialog weird problem

      On 16 abr, 14:39, "Armin Zingler" <az.nos...@free net.dewrote:
      "Thiago Macedo" <thiago.ch...@g mail.comschrieb
      >
      Hello everybody. I'm experiencing an strange problem with WinForms
      which someone, if possible, could help me to deal with.
      >
      We have a windows application which serves as a menu, calling other
      forms in different class library, all called as Modal Dialog. In one
      of this forms, I have another call to a Modal. When this second
      modal is closed, automatically is closed the form who called it. I
      can't understand how this is happening. After the end of the sub
      which calls the second modal the program goes to closing event. I'm
      closing the second modal explicity (me.close) and showing it with a
      instance.show() .
      >
      Do you show the 3rd Form in a Button_Click event? If yes, check the
      DialogResult property of the Button. If it is not 'None', the Form
      closes automatically.
      >
      Armin
      That's it!

      Thank you. :)

      Comment

      Working...