Greetings, I'll try to be brief and clear. Fluent in VB6, which is obviously a problem in .NET
simple program: 1) display authenticate form, 2) display 'main' working form & data which may include 'openfile' dialog box and other functions.
My problem is having the app close down once the OpenFile dialog box is closed - I cant seem to figure out how to keep the 'Main' form open, even though I use showdialog().
a) Pgm Startup: authenticate_form...
b) authenticate form performs hide(me) and main.showdialog(me)
c) Main form loads some data.
user may click button that creates and displays
an open file dialog. When a file is selected (or not), dialog closes, main closes - authenticate closes, application ends.
I tried a couple different approaches - such as calling the forms from a main module - but get the feeling thats not the way to go in .NET. Not crazy about 'chaining' 1 window from another (such as instantiating and displaying main form from within the Authentication window), but not sure how else to structure it.
VB.NET examples not very helpful, and either the documentation is weak on this topic, or I am just too dense to get (what I immagine is) a core/basic concept here of tread or flow control.
Any comments greatly appreciated.
simple program: 1) display authenticate form, 2) display 'main' working form & data which may include 'openfile' dialog box and other functions.
My problem is having the app close down once the OpenFile dialog box is closed - I cant seem to figure out how to keep the 'Main' form open, even though I use showdialog().
a) Pgm Startup: authenticate_form...
b) authenticate form performs hide(me) and main.showdialog(me)
c) Main form loads some data.
user may click button that creates and displays
an open file dialog. When a file is selected (or not), dialog closes, main closes - authenticate closes, application ends.
I tried a couple different approaches - such as calling the forms from a main module - but get the feeling thats not the way to go in .NET. Not crazy about 'chaining' 1 window from another (such as instantiating and displaying main form from within the Authentication window), but not sure how else to structure it.
VB.NET examples not very helpful, and either the documentation is weak on this topic, or I am just too dense to get (what I immagine is) a core/basic concept here of tread or flow control.
Any comments greatly appreciated.