what is the perfect way to show the main form from a module sub main
Posted on 2005-03-12
my startup project is a sub main in a module. after my personel security test I will load the main form. the main form contains a status bar with a progress bass and a cancel button.
what I need is to affect the value of the progress bar from each form that need that, and if the cancel button was clicked, i'll stop the process.
the problem is:
in the sub main I couldn't write FrmMain.show or application.Run(FrmMain).
dim f as frmMain.
frmMain.show' or ShowDialog
but in this case, I can know the form f from the other form.
I can declare f in the module as public.
but is there any other way to do that. or this is the perfect way????