Click here to Skip to main content
15,892,298 members
Home / Discussions / C#
   

C#

 
AnswerRe: Access to HTML data via COM with C#? Pin
Heath Stewart9-Mar-05 7:55
protectorHeath Stewart9-Mar-05 7:55 
QuestionIs it possible for me using session variables into a class? Pin
see079-Mar-05 6:37
see079-Mar-05 6:37 
AnswerRe: Is it possible for me using session variables into a class? Pin
TylerBrinks9-Mar-05 10:32
TylerBrinks9-Mar-05 10:32 
GeneralRe: Is it possible for me using session variables into a class? Pin
see079-Mar-05 12:09
see079-Mar-05 12:09 
GeneralRe: Is it possible for me using session variables into a class? Pin
Andy Brummer9-Mar-05 12:48
sitebuilderAndy Brummer9-Mar-05 12:48 
GeneralRe: Is it possible for me using session variables into a class? Pin
see079-Mar-05 12:53
see079-Mar-05 12:53 
GeneralPrinting Problem Pin
GoodQuestion9-Mar-05 5:35
GoodQuestion9-Mar-05 5:35 
QuestionShow 1st instance of application when starting 2nd instance? Pin
Kasdoffe9-Mar-05 5:22
Kasdoffe9-Mar-05 5:22 
When my program starts, I want to check if it's already running. If it is running, I want to show it and bring it to the foreground. I know multiple ways of checking if my program is already running by using the Process class or Mutex class. However, my main problem comes when trying to get my program to show itself.

I'm using a NotifyIcon and ShowInTaskBar is set to false. When my program is minimized to the system tray and the second process starts and uses the Process class to get the MainWindowHandle of the 1st process, it returns 0. I experimented with it and found that if I kept my program in the taskbar by setting ShowInTaskbar to true, it would have a non-zero MainWindowHandle I can use. But, I don't want it in the taskbar.

So, how can reactivate my already running program if I try to start a 2nd instance of it when the MainWindowHandle is 0? I probably could save the window handle to a file (suck!) and use it when a second instance starts.

Help please?


AnswerRe: Show 1st instance of application when starting 2nd instance? Pin
TylerBrinks9-Mar-05 6:25
TylerBrinks9-Mar-05 6:25 
GeneralC# Timers Pin
GaMBiT_KC9-Mar-05 5:18
GaMBiT_KC9-Mar-05 5:18 
GeneralRe: C# Timers Pin
TylerBrinks9-Mar-05 6:32
TylerBrinks9-Mar-05 6:32 
GeneralRe: C# Timers Pin
Joseph Baker26-Mar-05 14:32
Joseph Baker26-Mar-05 14:32 
GeneralRe: C# Timers Pin
MoustafaS9-Mar-05 7:18
MoustafaS9-Mar-05 7:18 
GeneralRe: C# Timers Pin
TylerBrinks9-Mar-05 10:37
TylerBrinks9-Mar-05 10:37 
GeneralRe: C# Timers Pin
eggie59-Mar-05 18:53
eggie59-Mar-05 18:53 
GeneralRe: C# Timers Pin
TylerBrinks10-Mar-05 4:34
TylerBrinks10-Mar-05 4:34 
GeneralRe: C# Timers Pin
GaMBiT_KC9-Mar-05 20:34
GaMBiT_KC9-Mar-05 20:34 
QuestionIs there a way to disable FontAntialiasing/ClearType? Pin
Sebastian Schneider9-Mar-05 3:54
Sebastian Schneider9-Mar-05 3:54 
AnswerRe: Is there a way to disable FontAntialiasing/ClearType? Pin
Heath Stewart9-Mar-05 7:39
protectorHeath Stewart9-Mar-05 7:39 
GeneralMax Windows Controls Pin
Dylan van Heerden9-Mar-05 2:49
Dylan van Heerden9-Mar-05 2:49 
GeneralRe: Max Windows Controls Pin
Heath Stewart9-Mar-05 7:32
protectorHeath Stewart9-Mar-05 7:32 
GeneralRe: Max Windows Controls Pin
Dylan van Heerden9-Mar-05 19:41
Dylan van Heerden9-Mar-05 19:41 
GeneralRe: Max Windows Controls Pin
Heath Stewart10-Mar-05 6:00
protectorHeath Stewart10-Mar-05 6:00 
GeneralRe: Max Windows Controls Pin
Dylan van Heerden10-Mar-05 20:32
Dylan van Heerden10-Mar-05 20:32 
Generalrestrict users to save/copy pdf document Pin
Adnan Siddiqi9-Mar-05 0:36
Adnan Siddiqi9-Mar-05 0:36 

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.