LEONEL ROCHA
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()
Dim nxtfrm As New SCR001
nxtfrm.StartPosition = FormStartPosition.Manual
nxtfrm.Size = Me.Size
nxtfrm.Location = Me.Location
nxtfrm.Show()
Me.Dispose(False)
Me.Close()
You need Form.ShowDialog, if you want a modal form. Show will return immediately, and the next line will execute.
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.
Did my comment help your issue?
Did my comment help your issue?
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
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
The exception is System.OutOfMemoryExceptio n, 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.
ASKER
Thanks Bob, give me a few days to check the outofmemory.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thks