Solved

VB6 vbModal problems

Posted on 2009-05-20
1
469 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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
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…

762 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

10 Experts available now in Live!

Get 1:1 Help Now