468,514 Members | 1,686 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,514 developers. It's quick & easy.

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
Jun 27 '08 #1
2 1277
"Thiago Macedo" <th**********@gmail.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

Jun 27 '08 #2
On 16 abr, 14:39, "Armin Zingler" <az.nos...@freenet.dewrote:
"Thiago Macedo" <thiago.ch...@gmail.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. :)
Jun 27 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Daniel Hill | last post: by
2 posts views Thread by Burns | last post: by
11 posts views Thread by ElmoWatson | last post: by
12 posts views Thread by Capt_Ron | last post: by
14 posts views Thread by =?Utf-8?B?UHVjY2E=?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.