Click here to Skip to main content
16,006,594 members
Home / Discussions / C#
   

C#

 
Generaldraw a dynamic polyline join line Pin
luming11223344552-Sep-04 16:43
luming11223344552-Sep-04 16:43 
QuestionCan I draw my system cursor in Direct3D? Pin
redleafong2-Sep-04 16:27
redleafong2-Sep-04 16:27 
AnswerRe: Can I draw my system cursor in Direct3D? Pin
LongRange.Shooter3-Sep-04 7:00
LongRange.Shooter3-Sep-04 7:00 
Generalcapturing keydown events Pin
jtmtv182-Sep-04 12:38
jtmtv182-Sep-04 12:38 
GeneralRe: capturing keydown events Pin
Heath Stewart2-Sep-04 14:47
protectorHeath Stewart2-Sep-04 14:47 
QuestionHow do I unload an assembly Pin
khariv2-Sep-04 11:46
khariv2-Sep-04 11:46 
AnswerRe: How do I unload an assembly Pin
Charlie Williams2-Sep-04 12:45
Charlie Williams2-Sep-04 12:45 
GeneralSingle instance app, file extension problem HELP! Pin
cdengler2-Sep-04 11:15
cdengler2-Sep-04 11:15 
I have a serious problem. I only want ONE instance of my application running. So in the Main, I have

Process aProcess = Process.GetCurrentProcess();
string aProcName = aProcess.ProcessName;

if (Process.GetProcessesByName(aProcName).Length > 1)
{
Application.ExitThread();
}

which may not be the most effecient means, but it works. Now the problem is, I have an associated extension (let's say .xyz) that brings up the application whenever someone clicks on a file with this extension. This works fine as well. The PROBLEM is, if an instance of the application is already open, and someone clicks on an .xyz extension, a new instance of the application is attempted and the code above stops it from running. What I WANT to do, is to either
A) Somehow have the new instance pass the args from the .xyz file to any CURRENT running instance of the application and then shut itself down as in above
OR
B) Don't even open up a new instance at all, but rather have it so that somehow something checks first to see if there IS an instance running.

There HAS to be some way to do this? HELP?
GeneralRe: Single instance app, file extension problem HELP! Pin
Heath Stewart2-Sep-04 11:42
protectorHeath Stewart2-Sep-04 11:42 
GeneralRe: Single instance app, file extension problem HELP! Pin
mav.northwind2-Sep-04 20:31
mav.northwind2-Sep-04 20:31 
GeneralRe: Single instance app, file extension problem HELP! Pin
cdengler3-Sep-04 15:49
cdengler3-Sep-04 15:49 
GeneralRe: Single instance app, file extension problem HELP! Pin
mav.northwind3-Sep-04 20:53
mav.northwind3-Sep-04 20:53 
GeneralExpense Tracker tool Pin
MT_SEA2-Sep-04 10:05
MT_SEA2-Sep-04 10:05 
GeneralRe: Expense Tracker tool Pin
Heath Stewart2-Sep-04 11:11
protectorHeath Stewart2-Sep-04 11:11 
GeneralC# System Window bar gradient colors Pin
Tristan Rhodes2-Sep-04 9:39
Tristan Rhodes2-Sep-04 9:39 
GeneralRe: C# System Window bar gradient colors Pin
Heath Stewart2-Sep-04 14:43
protectorHeath Stewart2-Sep-04 14:43 
GeneralRe: C# System Window bar gradient colors Pin
Tristan Rhodes2-Sep-04 17:01
Tristan Rhodes2-Sep-04 17:01 
GeneralRe: C# System Window bar gradient colors Pin
Heath Stewart3-Sep-04 6:13
protectorHeath Stewart3-Sep-04 6:13 
GeneralRe: C# System Window bar gradient colors Pin
Roland Bär2-Sep-04 20:16
Roland Bär2-Sep-04 20:16 
GeneralVS.NET 2005 Refresh Pin
Werdna2-Sep-04 9:25
Werdna2-Sep-04 9:25 
General.Net DateTime type and SQL DateTime type Pin
matthias s.2-Sep-04 7:32
matthias s.2-Sep-04 7:32 
GeneralRe: .Net DateTime type and SQL DateTime type Pin
partyganger2-Sep-04 8:37
partyganger2-Sep-04 8:37 
GeneralRe: .Net DateTime type and SQL DateTime type Pin
Gary Thom2-Sep-04 8:54
Gary Thom2-Sep-04 8:54 
GeneralC# equivalent to CStringList Pin
Glenn E. Lanier II2-Sep-04 5:59
Glenn E. Lanier II2-Sep-04 5:59 
GeneralRe: C# equivalent to CStringList Pin
Werdna2-Sep-04 6:03
Werdna2-Sep-04 6:03 

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.