Results 1 to 2 of 2

Thread: [RESOLVED] Error creating window handle

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2006
    Location
    Perth, Australia
    Posts
    55

    Resolved [RESOLVED] Error creating window handle

    First of all, the error message I am getting reads:

    "An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in system.windows.forms.dll

    Additional information: Error creating window handle."

    The ToolTip of the error in the code editor reads:

    "This code has called into another function. When that function is finished, this is the next statement that will be executed"

    This error occurs with the following statement in a LostFocus function:
    VB Code:
    1. TxtBox(1).BorderStyle = BorderStyle.None
    It seems that statements changing the BorderStyle of a TextBox call the LostFocus function for some reason...

    I am completely lost, so if anyone has a solution it would be greatly appreciated.

  2. #2

    Thread Starter
    Member
    Join Date
    Jan 2006
    Location
    Perth, Australia
    Posts
    55

    Re: Error creating window handle

    Ignore my last post... I turns out I needed to use Enter and Leave instead of GotFocus and LostFocus.

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