Click here to Skip to main content
15,906,333 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to execute Class without Main? Pin
PIEBALDconsult14-Mar-09 15:00
mvePIEBALDconsult14-Mar-09 15:00 
QuestionSockets in C# Pin
mrithula814-Mar-09 4:42
mrithula814-Mar-09 4:42 
AnswerRe: Sockets in C# Pin
Luc Pattyn14-Mar-09 5:01
sitebuilderLuc Pattyn14-Mar-09 5:01 
AnswerRe: Sockets in C# [modified] Pin
Member 349379914-Mar-09 7:02
Member 349379914-Mar-09 7:02 
GeneralRe: Sockets in C# Pin
mrithula814-Mar-09 20:21
mrithula814-Mar-09 20:21 
QuestionRe: Sockets in C# Pin
Jimmanuel15-Mar-09 1:14
Jimmanuel15-Mar-09 1:14 
GeneralRe: Sockets in C# [modified] Pin
mrithula814-Mar-09 22:06
mrithula814-Mar-09 22:06 
GeneralRe: Sockets in C# Pin
mrithula817-Mar-09 1:07
mrithula817-Mar-09 1:07 
GeneralRe: Sockets in C# Pin
mrithula817-Mar-09 4:04
mrithula817-Mar-09 4:04 
QuestionHow to align the control in the centre. Pin
Pankaj Nikam14-Mar-09 4:21
professionalPankaj Nikam14-Mar-09 4:21 
AnswerRe: How to align the control in the centre. Pin
Xmen Real 14-Mar-09 5:51
professional Xmen Real 14-Mar-09 5:51 
GeneralRe: How to align the control in the centre. Pin
Pankaj Nikam14-Mar-09 7:52
professionalPankaj Nikam14-Mar-09 7:52 
AnswerRe: How to align the control in the centre. Pin
Luis Alonso Ramos14-Mar-09 9:47
Luis Alonso Ramos14-Mar-09 9:47 
QuestionMaximize and not hide taskbar Pin
David Muir14-Mar-09 3:35
David Muir14-Mar-09 3:35 
AnswerRe: Maximize and not hide taskbar Pin
PIEBALDconsult14-Mar-09 4:18
mvePIEBALDconsult14-Mar-09 4:18 
GeneralRe: Maximize and not hide taskbar Pin
David Muir14-Mar-09 4:25
David Muir14-Mar-09 4:25 
GeneralRe: Maximize and not hide taskbar Pin
PIEBALDconsult14-Mar-09 4:51
mvePIEBALDconsult14-Mar-09 4:51 
GeneralRe: Maximize and not hide taskbar Pin
Luc Pattyn14-Mar-09 4:59
sitebuilderLuc Pattyn14-Mar-09 4:59 
AnswerRe: Maximize and not hide taskbar Pin
Luc Pattyn14-Mar-09 4:24
sitebuilderLuc Pattyn14-Mar-09 4:24 
GeneralRe: Maximize and not hide taskbar Pin
David Muir14-Mar-09 4:37
David Muir14-Mar-09 4:37 
AnswerRe: Maximize and not hide taskbar Pin
Enquiren12-Sep-09 22:05
Enquiren12-Sep-09 22:05 
Questionhow to cause current application to close upon arrival of new updated application ? Pin
shabya14-Mar-09 3:14
shabya14-Mar-09 3:14 
hello,
i wrote an application in c# that starts automaticaly when computer starts.

i allready have code that prevents the application from running more than
once as follows:

static void Main()
        {
            Boolean firstInstance = false;
            string safeName = "xxx";
            Mutex mutex = new Mutex(true, safeName, out firstInstance);
            if (!firstInstance) return; 
        }


now when i publish a new version (i set the revision to increase
automaticaly) and run the setup file all is fine but the old application
still remains.
i get two copies running , one new and one old.
is there a way to tell the old version to close ? like an external event?

i am using only visual studio tools.

thanks in advance

avi
AnswerRe: how to cause current application to close upon arrival of new updated application ? Pin
Navneet Hegde14-Mar-09 8:59
Navneet Hegde14-Mar-09 8:59 
GeneralRe: how to cause current application to close upon arrival of new updated application ? Pin
shabya14-Mar-09 9:31
shabya14-Mar-09 9:31 
GeneralRe: how to cause current application to close upon arrival of new updated application ? Pin
Navneet Hegde15-Mar-09 0:13
Navneet Hegde15-Mar-09 0:13 

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.