943,865 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Marked Solved
  • Views: 1612
  • VB.NET RSS
Sep 18th, 2008
0

ReStarting my windows mobile application

Expand Post »
Hi Guys ...

Does anybody know how to force a windows forms application to restart (Close and open again) taking the user back to the first screen ?

My user fills in a questionnaire, reaches the end and is asked to either perform another survey or to send data (sent back to HQ)

So, if they click to perform another survey ... I have got it to create seperate textfiles with incremented numbers file_1.txt, file_2.txt etc

but because I have disabled buttons within my program after the user completes each section .. they are unable to fill in any information for the second survey because the buttons have been disabled.

I was thinking it would have been something like

VB.NET Syntax (Toggle Plain Text)
  1. Application.restart()

but all I get is
VB.NET Syntax (Toggle Plain Text)
  1. Application.Exit()
Similar Threads
Reputation Points: 30
Solved Threads: 0
Junior Poster in Training
Elmo_loves_you is offline Offline
85 posts
since Mar 2008
Sep 18th, 2008
0

Re: ReStarting my windows mobile application

well - - has anyone got any ideas ??

I really need to get this functioning. my last resort would be to remove the code that disables the buttons after each section has been completed.
Reputation Points: 30
Solved Threads: 0
Junior Poster in Training
Elmo_loves_you is offline Offline
85 posts
since Mar 2008
Sep 18th, 2008
0

Re: ReStarting my windows mobile application

VB.NET Syntax (Toggle Plain Text)
  1. Dim p As New System.Diagnostics.ProcessStartInfo()
  2. p.FileName = "FactFind.exe"
  3. p.UseShellExecute = True
  4. System.Diagnostics.Process.Start(p)

I have tried the above code to start a process. forcing the application to start ... no joy however
Reputation Points: 30
Solved Threads: 0
Junior Poster in Training
Elmo_loves_you is offline Offline
85 posts
since Mar 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: debugging problem
Next Thread in VB.NET Forum Timeline: average sales





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC