Results 1 to 4 of 4

Thread: Window Handle

  1. #1

    Thread Starter
    Fanatic Member pvbangera's Avatar
    Join Date
    Sep 2001
    Location
    Mumbai, India
    Posts
    961

    Window Handle

    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

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    What do you mean 'sometimes' ?? Can you say the situations this error occur in ?

  3. #3

    Thread Starter
    Fanatic Member pvbangera's Avatar
    Join Date
    Sep 2001
    Location
    Mumbai, India
    Posts
    961
    that's what.

    i am not getting the cause for the error. it happens anytime . i want to know what could be the general possibilites which raise this error?

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Could be an attempt to use disposed form !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width