Click here to Skip to main content
16,020,840 members
Home / Discussions / C#
   

C#

 
GeneralRe: Implementing arrays in C# Pin
Debun18-Nov-06 1:52
Debun18-Nov-06 1:52 
GeneralRe: Implementing arrays in C# Pin
James Poulose19-Nov-06 4:54
James Poulose19-Nov-06 4:54 
QuestionNamespace Pin
shanisnathan17-Nov-06 23:12
shanisnathan17-Nov-06 23:12 
AnswerRe: Namespace Pin
Stefan Troschuetz18-Nov-06 0:12
Stefan Troschuetz18-Nov-06 0:12 
GeneralRe: Namespace Pin
shanisnathan18-Nov-06 2:28
shanisnathan18-Nov-06 2:28 
QuestionPlease Help me!! My pc is not going to shutdown when application is running Pin
Irfan Kothari17-Nov-06 22:50
Irfan Kothari17-Nov-06 22:50 
AnswerRe: Please Help me!! My pc is not going to shutdown when application is running Pin
Stefan Troschuetz18-Nov-06 0:10
Stefan Troschuetz18-Nov-06 0:10 
GeneralRe: Please Help me!! My pc is not going to shutdown when application is running Pin
Irfan Kothari18-Nov-06 1:32
Irfan Kothari18-Nov-06 1:32 
Hello stefan,

i have found very simple solutuion to this problem.
before your posting
but than also thanks.

whenever we click on shutdown it will call form closing event in the application
and i have written following code in my form closing event.

this.WindowState = FormWindowState.Minimized;
this.Opacity = 1;
this.ShowInTaskbar = false;
if (this.FrmCloseFlg == false)
{
e.Cancel = true;
}

thats y my application is not going to exit instead it will be in minimize
position.
so i have used one boolean variable and use condition as follows

if(!InSystemTray)
{
this.WindowState = FormWindowState.Minimized;
this.Opacity = 1;
this.ShowInTaskbar = false;
if (this.FrmCloseFlg == false)
{
e.Cancel = true;
}
//UserCanceled = true;
UserInfo.InSystemTray = true;
}
else
{
Application.Exit();
}
The InSystemTray will set to false again whenever we manually clik on open context menu or double click tray icon ,whatever it is.

is it simple na!!!!!Laugh | :laugh:
So we dont have a right to call any person an idiot ok buddy,be cool

Regards,
Irfan Kothari
GeneralRe: Please Help me!! My pc is not going to shutdown when application is running Pin
Yustme18-Nov-06 7:30
Yustme18-Nov-06 7:30 
GeneralRe: Please Help me!! My pc is not going to shutdown when application is running Pin
Irfan Kothari19-Nov-06 17:51
Irfan Kothari19-Nov-06 17:51 
QuestionHow to know if CTRL + A are pressed Pin
quiteSmart17-Nov-06 21:05
quiteSmart17-Nov-06 21:05 
AnswerRe: How to know if CTRL + A are pressed Pin
sbj hnagar17-Nov-06 21:15
sbj hnagar17-Nov-06 21:15 
JokeRe: How to know if CTRL + A are pressed Pin
quiteSmart17-Nov-06 21:19
quiteSmart17-Nov-06 21:19 
AnswerRe: How to know if CTRL + A are pressed Pin
Ashish Derhgawen17-Nov-06 21:53
Ashish Derhgawen17-Nov-06 21:53 
GeneralRe: How to know if CTRL + A are pressed Pin
quiteSmart17-Nov-06 22:49
quiteSmart17-Nov-06 22:49 
GeneralRe: How to know if CTRL + A are pressed Pin
Christian Graus17-Nov-06 23:10
protectorChristian Graus17-Nov-06 23:10 
GeneralRe: How to know if CTRL + A are pressed Pin
quiteSmart17-Nov-06 23:24
quiteSmart17-Nov-06 23:24 
GeneralRe: How to know if CTRL + A are pressed Pin
Stefan Troschuetz18-Nov-06 0:01
Stefan Troschuetz18-Nov-06 0:01 
GeneralRe: How to know if CTRL + A are pressed Pin
Thomas Stockwell18-Nov-06 6:07
professionalThomas Stockwell18-Nov-06 6:07 
Questionshockwave flash object Pin
Nafiseh Salmani17-Nov-06 19:17
Nafiseh Salmani17-Nov-06 19:17 
QuestionKill the process during UnInstall Process Pin
AB777117-Nov-06 19:10
AB777117-Nov-06 19:10 
QuestionMonitor what comes over the web Pin
Zinc Oianoid17-Nov-06 15:41
Zinc Oianoid17-Nov-06 15:41 
QuestionDisable Scroll In a Container Pin
Iridania17-Nov-06 12:27
Iridania17-Nov-06 12:27 
AnswerRe: Disable Scroll In a Container Pin
praveen pandey17-Nov-06 21:31
praveen pandey17-Nov-06 21:31 
QuestionRe: Disable Scroll In a Container [modified] Pin
Iridania18-Nov-06 3:28
Iridania18-Nov-06 3:28 

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.