423,850 Members | 1,562 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 423,850 IT Pros & Developers. It's quick & easy.

Form.ShowDialog(this) method make program freeze

P: n/a
Hi all,

In some cases I click button to open dialog using ShowDialog(this) method,
it make program freeze. Can you show me which cases this method cause problem
above?

Here are stack dump debug:
00000000()
system.windows.forms.dll!System.Windows.Forms.Cont rol.SetParentHandle(int
value = 594188) + 0x280 bytes
system.windows.forms.dll!System.Windows.Forms.Cont rol.CreateControl(bool
fIgnoreVisible = false) + 0x1b3 bytes
system.windows.forms.dll!System.Windows.Forms.Cont rol.CreateControl(bool
fIgnoreVisible = false) + 0x1c2 bytes
system.windows.forms.dll!System.Windows.Forms.Cont rol.CreateControl(bool
fIgnoreVisible = false) + 0x1c2 bytes
system.windows.forms.dll!System.Windows.Forms.Cont rol.CreateControl() + 0xe
bytes
.........
thanks.
Oct 19 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
I use Hide and ShowDialog to invisible and visible my form. But when reading
MSDN they advise using hide and show method. Is this problem ?
Can you help me to explain it ? that 's great.
Thanks

"Anh Khuong" wrote:
Hi all,

In some cases I click button to open dialog using ShowDialog(this) method,
it make program freeze. Can you show me which cases this method cause problem
above?

Here are stack dump debug:
00000000()
system.windows.forms.dll!System.Windows.Forms.Cont rol.SetParentHandle(int
value = 594188) + 0x280 bytes
system.windows.forms.dll!System.Windows.Forms.Cont rol.CreateControl(bool
fIgnoreVisible = false) + 0x1b3 bytes
system.windows.forms.dll!System.Windows.Forms.Cont rol.CreateControl(bool
fIgnoreVisible = false) + 0x1c2 bytes
system.windows.forms.dll!System.Windows.Forms.Cont rol.CreateControl(bool
fIgnoreVisible = false) + 0x1c2 bytes
system.windows.forms.dll!System.Windows.Forms.Cont rol.CreateControl() + 0xe
bytes
........
thanks.
Oct 19 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.