kiosk application

leorocha
leorocha used Ask the Experts™
on
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()
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2012
Top Expert 2008

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

Author

Commented:
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.
Most Valuable Expert 2012
Top Expert 2008

Commented:
Did my comment help your issue?
Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

Most Valuable Expert 2012
Top Expert 2008

Commented:
Did my comment help your issue?

Author

Commented:
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
Most Valuable Expert 2012
Top Expert 2008

Commented:
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.

Author

Commented:
Thanks Bob, give me a few days to check the outofmemory.
Most Valuable Expert 2012
Top Expert 2008
Commented:

Author

Commented:
Thks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial