Avatar of LEONEL ROCHA
LEONEL ROCHA
Flag for Uruguay asked on

kiosk application

The app has an initial form (eg. SCR000). When the user press a button a second form must be called (eg. SRC001) and from this must be called SRC003 and from this one mus return or call or recall SCR000. I'm not sure the following code is OK. Am I missing something?

        Dim nxtfrm As New SCR001
        nxtfrm.StartPosition = FormStartPosition.Manual
        nxtfrm.Size = Me.Size
        nxtfrm.Location = Me.Location
        nxtfrm.Show()

        Me.Dispose(False)
        Me.Close()
Visual Basic.NET

Avatar of undefined
Last Comment
LEONEL ROCHA

8/22/2022 - Mon
Bob Learned

You need Form.ShowDialog, if you want a modal form.  Show will return immediately, and the next line will execute.
LEONEL ROCHA

ASKER
Administrator, two or three days ago I've expanded my question and attach a text file that was apparently removed, why? I am now reviewing my files to send that message again. Please wait.
Bob Learned

Did my comment help your issue?
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Bob Learned

Did my comment help your issue?
LEONEL ROCHA

ASKER
Maybe I was not clear enough in the formulation of the question. The situation is this:

At startup FORMA is shown. When the user successfully logs in to the system, FORMB is executed.
The user do some stuff in FORMB and finally FORMC is executed.
FORMC finish the interaction with the user (logout) and executes FORMA (waiting for anotheer user).

As you see in the question I put the pseudo-code I'm using to execute NEXT FORM. The application works fine but sometimes I got the error you can see in the attached txt file.
extracto-log.txt
Bob Learned

The exception is System.OutOfMemoryException, which usually means that you are using a lot of memory with the binary serialization, a lot of memory overall, or you have a memory leak.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
LEONEL ROCHA

ASKER
Thanks Bob, give me a few days to check the outofmemory.
ASKER CERTIFIED SOLUTION
Bob Learned

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
LEONEL ROCHA

ASKER
Thks