Results 1 to 3 of 3

Thread: Illegal function call setting focus

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2004
    Posts
    11

    Resolved Illegal function call setting focus

    viewcustomers.Command1.SetFocus


    Any idea why this is generating an illegal function call? This statement is in the form_load event. The form is being shown modally from my main form so viewcustomers.show generates an error that it is already being shown. This is probably simple and I'm just not getting it (Been up all night lol). However I have started at it long enough. Any tips would be greatly appreciated.
    Last edited by Mad Coder; Oct 26th, 2004 at 05:08 PM.

  2. #2
    Frenzied Member David.Poundall's Avatar
    Join Date
    Sep 2002
    Location
    Robin Hood Land
    Posts
    1,457
    Move it out of the form load event into the form activate event. It may be the command button is not there to set the focus on as it is BEING loaded.
    David

    Learn the Rules so that you know how to break them properly.

    Printing dll dBTools MZTools Winsock API WinsockVB More Winsock SGrid2 MSChart Mail2Web

    If you have found this thread useful then read this

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2004
    Posts
    11

    Resolved

    That did it. Thanks. Sometimes I don't care why so much as I want to move on This is one of those cases lol.

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