When user open my document then userform automatic work(HELP!)

Discussion in 'AutoCAD' started by kenlinxp, Jun 7, 2004.

  1. kenlinxp

    kenlinxp Guest

    I want to do a function :"When user open my document then userform automatic work".

    I use the Documents.Events But I tryed this funciton in all Document.Events ,But UserForm1 can't getfocus.

    Code:
    Private Sub AcadDocument_Events()
    UserForm1.Show
    End Sub
    How can i do this function like that?
     
    kenlinxp, Jun 7, 2004
    #1
  2. kenlinxp

    Yves Guest

    Try this:

    Under AcadDocument,

    Private Sub AcadDocument_Activate()
    AnyForm.Show
    End Sub

    Hope this helps


    Document.Events ,But UserForm1 can't getfocus.
     
    Yves, Jun 7, 2004
    #2
  3. kenlinxp

    kenlinxp Guest

    Try this:

    Under AcadDocument,

    Private Sub AcadDocument_Activate()
    AnyForm.Show
    End Sub

    Hope this helps

    All The Acadocuments were tried !
    But User still can't use textbox to input text !
     
    kenlinxp, Jun 25, 2004
    #3
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.