Click here to Skip to main content
12,633,519 members (32,878 online)
   

C#

 
GeneralRe: Performance issue using Multi threading in Net 3.5 Pin
harold aptroot8-May-13 22:44
memberharold aptroot8-May-13 22:44 
GeneralRe: Performance issue using Multi threading in Net 3.5 Pin
KIDYA9-May-13 0:25
memberKIDYA9-May-13 0:25 
GeneralRe: Performance issue using Multi threading in Net 3.5 Pin
harold aptroot9-May-13 0:37
memberharold aptroot9-May-13 0:37 
GeneralRe: Performance issue using Multi threading in Net 3.5 Pin
KIDYA9-May-13 1:08
memberKIDYA9-May-13 1:08 
QuestionNeed your opinion on querying data for presentation on winforms / web page and for reports Pin
Nayan Ambaliya8-May-13 16:03
memberNayan Ambaliya8-May-13 16:03 
QuestionRe: Need your opinion on querying data for presentation on winforms / web page and for reports Pin
Richard MacCutchan8-May-13 21:43
mvpRichard MacCutchan8-May-13 21:43 
AnswerRe: Need your opinion on querying data for presentation on winforms / web page and for reports Pin
Abhinav S8-May-13 22:13
mvpAbhinav S8-May-13 22:13 
Questionhow to develop a client server encrypt commincation using one time pad Pin
Member 100380688-May-13 11:21
memberMember 100380688-May-13 11:21 
AnswerRe: how to develop a client server encrypt commincation using one time pad Pin
Eddy Vluggen8-May-13 11:54
mvpEddy Vluggen8-May-13 11:54 
GeneralRe: how to develop a client server encrypt commincation using one time pad Pin
Member 100380688-May-13 12:04
memberMember 100380688-May-13 12:04 
GeneralRe: how to develop a client server encrypt commincation using one time pad Pin
Eddy Vluggen8-May-13 12:14
mvpEddy Vluggen8-May-13 12:14 
QuestionEffective Coding Style to build a Class Library Pin
Bikash Prakash Dash8-May-13 10:55
memberBikash Prakash Dash8-May-13 10:55 
AnswerRe: Effective Coding Style to build a Class Library Pin
Eddy Vluggen8-May-13 11:48
mvpEddy Vluggen8-May-13 11:48 
QuestionHelp with mutex, cannot get mutex to work Pin
turbosupramk38-May-13 8:06
memberturbosupramk38-May-13 8:06 
This always returns true, whether I have notepad open or not, can anyone tell me what I'm doing wrong?


if (IsSingleInstance())
           {
               Application.EnableVisualStyles();
               Application.SetCompatibleTextRenderingDefault(false);
               Application.Run(new Form1(Args));
           }
           else
           {
               Process current = Process.GetCurrentProcess();
               foreach (Process process in Process.GetProcessesByName(current.ProcessName))
               {
                   if (process.Id != current.Id)
                   {
                       SetForegroundWindow(process.MainWindowHandle);
                       break;
                   }
               }
           }



static Mutex _m;


[STAThread]
        static void Main(string[] Args)
        {

static bool IsSingleInstance()
    {
        try
        {
            // Try to open existing mutex.
            Mutex.OpenExisting(@"Global\Notepad");
        }
        catch
        {
            // If exception occurred, there is no such mutex.
            Program._m = new Mutex(true, "Notepad");

            // Only one instance.
            return true;
        }
        // More than one instance.
        return false;
    }
}

AnswerRe: Help with mutex, cannot get mutex to work Pin
Jasmine25018-May-13 8:38
memberJasmine25018-May-13 8:38 
GeneralRe: Help with mutex, cannot get mutex to work Pin
turbosupramk38-May-13 8:49
memberturbosupramk38-May-13 8:49 
AnswerRe: Help with mutex, cannot get mutex to work Pin
Dave Kreskowiak8-May-13 9:10
mvpDave Kreskowiak8-May-13 9:10 
GeneralRe: Help with mutex, cannot get mutex to work Pin
turbosupramk38-May-13 9:31
memberturbosupramk38-May-13 9:31 
GeneralRe: Help with mutex, cannot get mutex to work Pin
Jasmine25018-May-13 9:35
memberJasmine25018-May-13 9:35 
GeneralRe: Help with mutex, cannot get mutex to work Pin
Dave Kreskowiak8-May-13 9:53
mvpDave Kreskowiak8-May-13 9:53 
GeneralRe: Help with mutex, cannot get mutex to work Pin
turbosupramk310-May-13 2:58
memberturbosupramk310-May-13 2:58 
GeneralRe: Help with mutex, cannot get mutex to work Pin
Dave Kreskowiak10-May-13 3:17
mvpDave Kreskowiak10-May-13 3:17 
Questionlogin authentication Pin
geo thomas8-May-13 1:08
professionalgeo thomas8-May-13 1:08 
AnswerRe: login authentication Pin
Sivaraman Dhamodharan8-May-13 1:22
memberSivaraman Dhamodharan8-May-13 1:22 
GeneralRe: login authentication Pin
geo thomas8-May-13 1:30
professionalgeo thomas8-May-13 1:30 
GeneralRe: login authentication Pin
Dave Kreskowiak8-May-13 3:05
mvpDave Kreskowiak8-May-13 3:05 
GeneralRe: login authentication Pin
geo thomas8-May-13 21:06
professionalgeo thomas8-May-13 21:06 
GeneralRe: login authentication Pin
Dave Kreskowiak9-May-13 2:37
mvpDave Kreskowiak9-May-13 2:37 
GeneralRe: login authentication Pin
geo thomas9-May-13 20:00
professionalgeo thomas9-May-13 20:00 
Questionrunning asp.net website in a windows application Pin
mrkeivan7-May-13 23:25
membermrkeivan7-May-13 23:25 
AnswerRe: running asp.net website in a windows application Pin
Dave Kreskowiak8-May-13 3:06
mvpDave Kreskowiak8-May-13 3:06 
AnswerRe: running asp.net website in a windows application Pin
Abhinav S8-May-13 22:22
mvpAbhinav S8-May-13 22:22 
QuestionIIS security settings and different permission Pin
ashabhatt27077-May-13 20:52
memberashabhatt27077-May-13 20:52 
SuggestionRe: IIS security settings and different permission Pin
Richard MacCutchan7-May-13 22:14
mvpRichard MacCutchan7-May-13 22:14 
Questionsave time with the desired date Pin
demoninside97-May-13 19:38
memberdemoninside97-May-13 19:38 
AnswerRe: save time with the desired date Pin
demoninside97-May-13 21:05
memberdemoninside97-May-13 21:05 
AnswerRe: save time with the desired date Pin
Richard MacCutchan7-May-13 22:06
mvpRichard MacCutchan7-May-13 22:06 
QuestionUser defined functions for Excel 2010 in .NET: args linked to cells don't work Pin
PozzaVecia7-May-13 12:02
memberPozzaVecia7-May-13 12:02 
AnswerRe: User defined functions for Excel 2010 in .NET: args linked to cells don't work Pin
Dave Kreskowiak7-May-13 16:10
mvpDave Kreskowiak7-May-13 16:10 
AnswerRe: User defined functions for Excel 2010 in .NET: args linked to cells don't work Pin
PozzaVecia7-May-13 19:48
memberPozzaVecia7-May-13 19:48 
GeneralRe: User defined functions for Excel 2010 in .NET: args linked to cells don't work Pin
Dave Kreskowiak8-May-13 3:14
mvpDave Kreskowiak8-May-13 3:14 
QuestionSolution Explorer to be shown on the toolbar Pin
indian1437-May-13 8:15
memberindian1437-May-13 8:15 
AnswerRe: Solution Explorer to be shown on the toolbar Pin
Dave Kreskowiak7-May-13 8:41
mvpDave Kreskowiak7-May-13 8:41 
GeneralRe: Solution Explorer to be shown on the toolbar Pin
T Pat7-May-13 21:00
professionalT Pat7-May-13 21:00 
AnswerRe: Solution Explorer to be shown on the toolbar Pin
Pete O'Hanlon7-May-13 9:16
protectorPete O'Hanlon7-May-13 9:16 
AnswerRe: Solution Explorer to be shown on the toolbar Pin
Member 100361728-May-13 4:07
memberMember 100361728-May-13 4:07 
GeneralRe: Solution Explorer to be shown on the toolbar Pin
Pete O'Hanlon8-May-13 4:47
protectorPete O'Hanlon8-May-13 4:47 
QuestionBackground worker with progress bar timing issue Pin
Blubbo7-May-13 6:02
memberBlubbo7-May-13 6:02 
AnswerRe: Background worker with progress bar timing issue Pin
Eddy Vluggen7-May-13 10:28
mvpEddy Vluggen7-May-13 10:28 
AnswerRe: Background worker with progress bar timing issue Pin
Matt T Heffron7-May-13 12:31
professionalMatt T Heffron7-May-13 12:31 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.161208.2 | Last Updated 9 Dec 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid