Problem with AcFocusCtrl in AutoCAD 2005

Discussion in 'AutoCAD' started by Mick D, Jan 26, 2005.

  1. Mick D

    Mick D Guest

    I had two forms that have been using the AcFocusCtrl for the last year
    or two. They worked fine in ADT2i, ADT3.3, AutoCAD 2004, and AutoCAD
    2005. In fact the forms still work fine in my installation of AutoCAD
    2005 right now.

    The problem is that in the past couple days several machines on our
    floor, that are using AutoCad 2005, that also use the code they have
    been using for years have been popping errors.

    I removed the AcFocusCtrl, both from the code and the control, because
    that was the first thing referenced in the form-initialize sub and the
    forms loaded perfectly.

    I will post the error message specifically when I get another view of it
    on someone else's machine. by memory it was simply "Application error"
    then another two word error. I don't have a free machine to replicate
    it on at the moment.

    I think it is related to a Windows Update the the machines went through
    a week or so ago. They are WinXP Pro SP2 likely fully updated with
    every security patch on Windows update.

    If anyone has a clue about this and knows how to get the behavior back
    that AcFocusCtrl provided please let me know.

    Thanks and hope this helps if someone else has the same issue.

    Later
    Mick Darling: Cad Manager
    Stubbins Assoc.: Cambridge MA
     
    Mick D, Jan 26, 2005
    #1
  2. Mick D

    Mick D Guest


    To follow up on my own post the error is:

    Automation Error
    Unspecified Error

    It then kicks in the VBA editor for debugging and will not allow editing
    of the form or code that involves the AcFocusCtrl
     
    Mick D, Jan 26, 2005
    #2
  3. Mick,
    Can you describe what an AcFocusCtrl control is? I can see it in my
    available references but I have no idea what it does.
    Thanks,
    Kenneth Hutson
    San Antonio, TX
     
    Kenneth Hutson, Jan 27, 2005
    #3
  4. Mick D

    Mick D Guest

    The AcFocusCtrl is a control that you can place in Userforms and then
    activate with code on on userform-Initialize. VBA forms in AutoCAD will
    not allow you to keep foucs on a textbox in the form while editing it.
    The AcFocusCtrl keeps the focus on the textbox and allows you to edit it.

    Unfortunatly it now no-longer works and my users cannot enter in their
    own settings and must rely on my hard coded routines.

    Mick
     
    Mick D, Jan 28, 2005
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.