Solved

VB6 vbModal problems

Posted on 2009-05-20
1
479 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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.
This is about my first experience with programming Arduino.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

828 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