• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 506
  • Last Modified:

VB6 vbModal problems

I am calling the form that uses vbModal from module when all the function is finsih in the form it does not return to the module Y is that and what can I do to fix it
1 Solution
Luis PérezSoftware Architect in .NetCommented:
Very strange. I've tried this code:

Sub Main()
    Form1.Show vbModal
    MsgBox "ok"
End Sub

... where form1 is an empty form. When application starts (previously set that initial object of application is Sub Main), Form1 shows. When I close it, the MsgBox displays. So, all is OK.

Can you post some code to see what can be happening?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now