How can I force a modal dialog to close?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alex Brown

    How can I force a modal dialog to close?

    I am writing a vb.net windows application and am using functionality
    in a com dll written in vb6. There is a modal dialog that pops up when
    I call a function in the dll that I want to automatically close. I am
    90% sure that the dialog is generated by the vb6 msgbox funciton. I
    don't need to do anything except close the dialog - it just has an OK
    button.

    What is the easiest and best way to close the dialog automatically?

    Thanks!
  • masoud saeida

    #2
    Re: How can I force a modal dialog to close?

    you can use senkey{"ENTER"} ;)
    perhaps it should has focus


    Comment

    Working...