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

C#

 
GeneralRe: How do I make the Form Menu Hide or SHOW with ESC key? Pin
Heath Stewart14-Nov-03 2:54
protectorHeath Stewart14-Nov-03 2:54 
GeneralRe: How do I make the Form Menu Hide or SHOW with ESC key? Pin
CSharp131414-Nov-03 3:34
CSharp131414-Nov-03 3:34 
GeneralRe: How do I make the Form Menu Hide or SHOW with ESC key? Pin
Heath Stewart14-Nov-03 4:29
protectorHeath Stewart14-Nov-03 4:29 
GeneralDataGrid Images Pin
pnolan11-Nov-03 11:54
pnolan11-Nov-03 11:54 
GeneralRe: DataGrid Images Pin
Daniel Zaharia11-Nov-03 12:45
Daniel Zaharia11-Nov-03 12:45 
GeneralRe: DataGrid Images Pin
Anonymous11-Nov-03 13:25
Anonymous11-Nov-03 13:25 
QuestionHow can I limit my program to running just one instance. Pin
mcgahanfl11-Nov-03 10:47
mcgahanfl11-Nov-03 10:47 
AnswerRe: How can I limit my program to running just one instance. Pin
jeff_martin11-Nov-03 11:06
jeff_martin11-Nov-03 11:06 
using System.Diagnostics;

In the Main function for your app...

//get info on current proc
Process proc = Process.GetCurrentProcess(); 
//get array of process w/ same name
Process[] procs = Process.GetProcessesByName(proc.ProcessName);            
//if there is more than one
if (procs.Length > 1)
    Application.Exit(); //exit
else
    Application.Run(new Form1()); //else run the app

GeneralRe: How can I limit my program to running just one instance. Pin
mcgahanfl11-Nov-03 12:30
mcgahanfl11-Nov-03 12:30 
GeneralRe: How can I limit my program to running just one instance. Pin
Alvaro Mendez12-Nov-03 10:25
Alvaro Mendez12-Nov-03 10:25 
GeneralRe: How can I limit my program to running just one instance. Pin
jeff_martin12-Nov-03 10:30
jeff_martin12-Nov-03 10:30 
GeneralRe: How can I limit my program to running just one instance. Pin
Alvaro Mendez12-Nov-03 10:39
Alvaro Mendez12-Nov-03 10:39 
AnswerRe: How can I limit my program to running just one instance. Pin
Kentamanos13-Nov-03 6:11
Kentamanos13-Nov-03 6:11 
GeneralRe: How can I limit my program to running just one instance. Pin
mcgahanfl13-Nov-03 8:05
mcgahanfl13-Nov-03 8:05 
GeneralC# seting valuse in another form Pin
Anonymous11-Nov-03 8:55
Anonymous11-Nov-03 8:55 
GeneralRe: C# seting valuse in another form Pin
Hesham Amin11-Nov-03 9:43
Hesham Amin11-Nov-03 9:43 
GeneralRe: C# seting valuse in another form Pin
Member 44190911-Nov-03 10:50
Member 44190911-Nov-03 10:50 
GeneralRe: C# seting valuse in another form Pin
Hesham Amin12-Nov-03 0:33
Hesham Amin12-Nov-03 0:33 
GeneralRe: C# seting valuse in another form Pin
WuRunZhe17-Nov-13 21:31
WuRunZhe17-Nov-13 21:31 
GeneralProblem firing event and passing "this" Pin
andrewstan11-Nov-03 7:04
andrewstan11-Nov-03 7:04 
GeneralRe: Problem firing event and passing "this" Pin
Heath Stewart11-Nov-03 7:14
protectorHeath Stewart11-Nov-03 7:14 
GeneralRe: Problem firing event and passing "this" Pin
andrewstan11-Nov-03 23:20
andrewstan11-Nov-03 23:20 
GeneralRe: Problem firing event and passing "this" Pin
Heath Stewart12-Nov-03 2:53
protectorHeath Stewart12-Nov-03 2:53 
GeneralRe: Problem firing event and passing "this" Pin
andrewstan12-Nov-03 3:13
andrewstan12-Nov-03 3:13 
Generaldrag window wothout titlebar Pin
troels_sorensen11-Nov-03 6:21
troels_sorensen11-Nov-03 6:21 

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.