Form.ShowDialog(this) method make program freeze

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.Control.SetParentHandle(int
value = 594188) + 0x280 bytes
system.windows.forms.dll!System.Windows.Forms.Control.CreateControl(bool
fIgnoreVisible = false) + 0x1b3 bytes
system.windows.forms.dll!System.Windows.Forms.Control.CreateControl(bool
fIgnoreVisible = false) + 0x1c2 bytes
system.windows.forms.dll!System.Windows.Forms.Control.CreateControl(bool
fIgnoreVisible = false) + 0x1c2 bytes
system.windows.forms.dll!System.Windows.Forms.Control.CreateControl() + 0xe
bytes
.........
thanks.
 
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
 
Back
Top