Solved

VB6 vbModal problems

Posted on 2009-05-20
1
472 Views
Last Modified: 2012-05-07
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
0
Comment
Question by:1030071002
1 Comment
 
LVL 25

Accepted Solution

by:
Luis Pérez earned 250 total points
ID: 24433131
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?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now