Click here to Skip to main content
16,007,885 members
Home / Discussions / C#
   

C#

 
Questiona question about notifyicon ? Pin
cmpeng3412-May-06 2:02
cmpeng3412-May-06 2:02 
AnswerRe: a question about notifyicon ? Pin
NaNg1524112-May-06 2:09
NaNg1524112-May-06 2:09 
GeneralMessage Closed Pin
12-May-06 2:29
cmpeng3412-May-06 2:29 
GeneralRe: a question about notifyicon ? Pin
NaNg1524112-May-06 3:14
NaNg1524112-May-06 3:14 
GeneralRe: a question about notifyicon ? Pin
engsrini12-May-06 3:30
engsrini12-May-06 3:30 
GeneralRe: a question about notifyicon ? Pin
NaNg1524112-May-06 3:32
NaNg1524112-May-06 3:32 
QuestionCast unmanaged type to managed type Pin
anderslundsgard12-May-06 1:48
anderslundsgard12-May-06 1:48 
Questionimplementing form closing event ? help please ... Pin
cmpeng3412-May-06 1:26
cmpeng3412-May-06 1:26 
hi all,
i want to implement form_resize and/or form_closing event. i added these two lines in form1.designer.cs:

this.Form1_FormClosing += new System.Windows.Forms.FormClosingEventArgs(this.notifyIcon1_MouseDoubleClick);
this.Form1_Resize += new System.EventArgs(this.Form1_Resize);

and add some appropriate code in Form1.cs but when building the solution i get the following errors:
>Error 1 No overload for method 'FormClosingEventArgs' takes '1' arguments
>Error 2 No overload for method 'EventArgs' takes '1' arguments
how can i fix these problems ?

ps: codes in Form1.cs are :
private void Form1_Resize(object sender, EventArgs e)
{
if (this.WindowState == FormWindowState.Minimized)
this.Hide();
}

private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
if (e.CloseReason == CloseReason.UserClosing)
{
e.Cancel = true;
this.WindowState = FormWindowState.Minimized;
}
}
AnswerRe: implementing form closing event ? help please ... Pin
engsrini12-May-06 1:34
engsrini12-May-06 1:34 
QuestionNoob question: How to share variables between two forms? Pin
Subterranean12-May-06 1:16
Subterranean12-May-06 1:16 
AnswerRe: Noob question: How to share variables between two forms? Pin
NaNg1524112-May-06 1:20
NaNg1524112-May-06 1:20 
GeneralRe: Noob question: How to share variables between two forms? Pin
NaNg1524112-May-06 1:43
NaNg1524112-May-06 1:43 
GeneralRe: Noob question: How to share variables between two forms? Pin
led mike12-May-06 9:04
led mike12-May-06 9:04 
GeneralRe: Noob question: How to share variables between two forms? Pin
NaNg1524112-May-06 9:14
NaNg1524112-May-06 9:14 
QuestionFile access report by active directory Pin
Heemanshu12-May-06 0:54
Heemanshu12-May-06 0:54 
QuestionClass Relationships Pin
Brendan Vogt12-May-06 0:29
Brendan Vogt12-May-06 0:29 
QuestionICryptoTransform and Settings help Pin
NaNg1524112-May-06 0:28
NaNg1524112-May-06 0:28 
QuestionHow to compile .NET Windows proj with resources at command line? Pin
KishoreT12-May-06 0:27
KishoreT12-May-06 0:27 
QuestionPlease help with MailMessage... Pin
_Mayo_12-May-06 0:25
_Mayo_12-May-06 0:25 
QuestionWeb Service problem Pin
_Arthur12-May-06 0:00
_Arthur12-May-06 0:00 
AnswerRe: Web Service problem Pin
NaNg1524112-May-06 0:04
NaNg1524112-May-06 0:04 
GeneralRe: Web Service problem Pin
_Arthur12-May-06 0:55
_Arthur12-May-06 0:55 
GeneralRe: Web Service problem Pin
NaNg1524112-May-06 1:18
NaNg1524112-May-06 1:18 
GeneralRe: Web Service problem Pin
_Arthur12-May-06 1:32
_Arthur12-May-06 1:32 
GeneralRe: Web Service problem Pin
NaNg1524112-May-06 1:45
NaNg1524112-May-06 1:45 

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.