Click here to Skip to main content
15,891,316 members
Home / Discussions / C#
   

C#

 
GeneralRe: Auto Start Up Application When Window load up Pin
Vikram A Punathambekar14-Apr-08 20:26
Vikram A Punathambekar14-Apr-08 20:26 
AnswerRe: Auto Start Up Application When Window load up Pin
Arjun Marwaha14-Apr-08 20:29
Arjun Marwaha14-Apr-08 20:29 
GeneralRe: Auto Start Up Application When Window load up Pin
Ravenet14-Apr-08 22:00
Ravenet14-Apr-08 22:00 
QuestionHow can I write and Read Resource file in C# application? Pin
Member 400849214-Apr-08 19:40
Member 400849214-Apr-08 19:40 
AnswerRe: How can I write and Read Resource file in C# application? Pin
Christian Graus14-Apr-08 19:54
protectorChristian Graus14-Apr-08 19:54 
AnswerRe: How can I write and Read Resource file in C# application? Pin
Ravenet14-Apr-08 22:01
Ravenet14-Apr-08 22:01 
AnswerRe: How can I write and Read Resource file in C# application? Pin
Dave Kreskowiak15-Apr-08 3:19
mveDave Kreskowiak15-Apr-08 3:19 
GeneralApplication.Restart() do not terminate application Pin
Maddie from Dartford14-Apr-08 19:31
Maddie from Dartford14-Apr-08 19:31 
Hi,
I am working on C# form application. The user can change the UI seetings and i need to restart the application.
I am using Application.Restart() method to do this.
But this is not closing my MainThread (Form) completely.

To ensure that only one instance of appplication should be running, i am checking for the process name like this:

string MyMainProcessName = Process.GetCurrentProcess().ProcessName;
Process[] AppInstances = Process.GetProcessesByName(MyMainProcessName );
if (AppInstances .Length > GlobalConstants.ONE)
{
MessageBox.Show("The application is already running");
}

I always get this message whenever i restart the application.

How to ensure that Main Application and all child applcation should be terminated properly before doing Restart?


Thanks.
AnswerRe: Application.Restart() do not terminate application Pin
Vikram A Punathambekar14-Apr-08 19:54
Vikram A Punathambekar14-Apr-08 19:54 
GeneralRe: Application.Restart() do not terminate application [modified] Pin
Maddie from Dartford14-Apr-08 20:04
Maddie from Dartford14-Apr-08 20:04 
GeneralRe: Application.Restart() do not terminate application Pin
Vikram A Punathambekar14-Apr-08 20:30
Vikram A Punathambekar14-Apr-08 20:30 
GeneralRe: Application.Restart() do not terminate application Pin
Maddie from Dartford14-Apr-08 23:41
Maddie from Dartford14-Apr-08 23:41 
GeneralRe: Application.Restart() do not terminate application Pin
Vikram A Punathambekar15-Apr-08 5:49
Vikram A Punathambekar15-Apr-08 5:49 
GeneralRe: Application.Restart() do not terminate application Pin
Ravenet14-Apr-08 22:05
Ravenet14-Apr-08 22:05 
GeneralRe: Application.Restart() do not terminate application Pin
Daniel Grunwald14-Apr-08 22:50
Daniel Grunwald14-Apr-08 22:50 
GeneralRe: Application.Restart() do not terminate application Pin
Maddie from Dartford14-Apr-08 23:54
Maddie from Dartford14-Apr-08 23:54 
QuestionSplit and Email files Pin
mailstorao14-Apr-08 18:55
mailstorao14-Apr-08 18:55 
GeneralRe: Split and Email files Pin
mailstorao14-Apr-08 18:57
mailstorao14-Apr-08 18:57 
GeneralRe: Split and Email files Pin
Vikram A Punathambekar14-Apr-08 19:56
Vikram A Punathambekar14-Apr-08 19:56 
GeneralRe: Split and Email files Pin
mailstorao14-Apr-08 20:36
mailstorao14-Apr-08 20:36 
GeneralRe: Split and Email files Pin
mailstorao14-Apr-08 20:37
mailstorao14-Apr-08 20:37 
GeneralWriteProcessMemory problem [modified] Pin
Xmen Real 14-Apr-08 16:15
professional Xmen Real 14-Apr-08 16:15 
QuestionDisplaying event data in a textbox Pin
gwe12314-Apr-08 15:14
gwe12314-Apr-08 15:14 
GeneralRe: Displaying event data in a textbox Pin
Ravenet14-Apr-08 15:29
Ravenet14-Apr-08 15:29 
GeneralRe: Displaying event data in a textbox Pin
Vikram A Punathambekar14-Apr-08 19:59
Vikram A Punathambekar14-Apr-08 19:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.