ReStarting my windows mobile application

Please support our VB.NET advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Mar 2008
Posts: 83
Reputation: Elmo_loves_you is an unknown quantity at this point 
Solved Threads: 0
Elmo_loves_you's Avatar
Elmo_loves_you Elmo_loves_you is offline Offline
Junior Poster in Training

ReStarting my windows mobile application

 
0
  #1
Sep 18th, 2008
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

  1. Application.restart()

but all I get is
  1. Application.Exit()
Michelle (Junior Developer)
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 83
Reputation: Elmo_loves_you is an unknown quantity at this point 
Solved Threads: 0
Elmo_loves_you's Avatar
Elmo_loves_you Elmo_loves_you is offline Offline
Junior Poster in Training

Re: ReStarting my windows mobile application

 
0
  #2
Sep 18th, 2008
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.
Michelle (Junior Developer)
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 83
Reputation: Elmo_loves_you is an unknown quantity at this point 
Solved Threads: 0
Elmo_loves_you's Avatar
Elmo_loves_you Elmo_loves_you is offline Offline
Junior Poster in Training

Re: ReStarting my windows mobile application

 
0
  #3
Sep 18th, 2008
  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
Michelle (Junior Developer)
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC