hi all,

i have a mdi form. on the menu click event i call a form

VB Code:
  1. frmNewForm as new frmNewForm
  2. frmNewForm.MdiParent = Me
  3. frmNewForm.Show()

the code is working properly. but some times it gives me error "Error creating window handle". If I remove the
VB Code:
  1. 'frmNewForm.MdiParent = Me'
line from the code, then it works properly.

any hint??

regards,

prakash