Click here to Skip to main content
15,891,951 members
Home / Discussions / C#
   

C#

 
GeneralRe: Top most form Pin
Roger Stewart17-Nov-03 9:12
professionalRoger Stewart17-Nov-03 9:12 
GeneralRe: Top most form Pin
Judah Gabriel Himango17-Nov-03 9:21
sponsorJudah Gabriel Himango17-Nov-03 9:21 
Generalpassing TimeSpan in a RowFilter Expression Pin
nedeus17-Nov-03 0:31
nedeus17-Nov-03 0:31 
GeneralRe: passing TimeSpan in a RowFilter Expression Pin
Heath Stewart17-Nov-03 3:07
protectorHeath Stewart17-Nov-03 3:07 
GeneralRe: passing TimeSpan in a RowFilter Expression Pin
Anonymous17-Nov-03 3:30
Anonymous17-Nov-03 3:30 
GeneralArgumentOutOfRangeException Pin
Mertli Ozgur Nevres16-Nov-03 21:49
Mertli Ozgur Nevres16-Nov-03 21:49 
GeneralRe: ArgumentOutOfRangeException Pin
Heath Stewart17-Nov-03 2:49
protectorHeath Stewart17-Nov-03 2:49 
GeneralRe: ArgumentOutOfRangeException Pin
Mertli Ozgur Nevres17-Nov-03 3:05
Mertli Ozgur Nevres17-Nov-03 3:05 
Thanks for your care.
Yes, i handle the Closing event. My eventhandler is below:
(Note: the error does not occur always, it occurs sometimes ( 1 in 10, average )

private void Server_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
if ( !CheckOnlines() )
e.Cancel = true;
}//End of Private Method Server_Closing.


and my CheckOnlines method:


private Boolean CheckOnlines()
{
int i = this.m_iNumOfOnlineOperators
+ this.m_iNumOfOnlineVisitors;

if ( i > 0 )
{
TextObject objTO = ( TextObject )
this.m_htTexts["Server_CheckOnlines_Msg2"];
String strMsg = objTO.TextValue;
strMsg = strMsg.Replace(
"@", this.m_iNumOfOnlineOperators.ToString() );
strMsg = strMsg.Replace(
"$", this.m_iNumOfOnlineVisitors.ToString() );

objTO = ( TextObject )
this.m_htTexts["Server_CheckOnlines_Msg1"];

DialogResult dr = MessageBox.Show(
this, strMsg, objTO.TextValue, MessageBoxButtons.YesNo,
MessageBoxIcon.Information );

if ( dr == DialogResult.Yes )
{
return true;
}//End of if ( dr == DialogResult.Yes ).
else
{
return false;
}//End of else.
}//End of if ( i > 0 ).
else
{
return true;
}//End of else.
}//End of Private Method CheckOnlines.


GeneralRe: ArgumentOutOfRangeException Pin
Heath Stewart17-Nov-03 3:23
protectorHeath Stewart17-Nov-03 3:23 
QuestionHow do I compile C# ? Pin
tom7616-Nov-03 21:19
tom7616-Nov-03 21:19 
AnswerRe: How do I compile C# ? Pin
Corinna John16-Nov-03 22:51
Corinna John16-Nov-03 22:51 
GeneralRe: How do I compile C# ? Pin
tom7616-Nov-03 23:13
tom7616-Nov-03 23:13 
GeneralRe: How do I compile C# ? Pin
Heath Stewart17-Nov-03 2:41
protectorHeath Stewart17-Nov-03 2:41 
GeneralRe: How do I compile C# ? Pin
tom7617-Nov-03 3:00
tom7617-Nov-03 3:00 
GeneralControl border Pin
Bhangorix16-Nov-03 19:55
Bhangorix16-Nov-03 19:55 
GeneralRe: Control border Pin
Corinna John16-Nov-03 22:55
Corinna John16-Nov-03 22:55 
GeneralRe: Control border Pin
Bhangorix17-Nov-03 14:43
Bhangorix17-Nov-03 14:43 
General"The request failed with http status 404: Not Found" Pin
kissa16-Nov-03 17:25
kissa16-Nov-03 17:25 
GeneralRe: "The request failed with http status 404: Not Found" Pin
Heath Stewart17-Nov-03 2:38
protectorHeath Stewart17-Nov-03 2:38 
GeneralRe: "The request failed with http status 404: Not Found" Pin
kissa17-Nov-03 17:21
kissa17-Nov-03 17:21 
General,Http 404 error Pin
kissa16-Nov-03 17:21
kissa16-Nov-03 17:21 
GeneralAbout Windows Services Pin
Xuan Thuy16-Nov-03 14:57
Xuan Thuy16-Nov-03 14:57 
GeneralWindow Forms inside Controls Pin
RWBradley16-Nov-03 8:52
RWBradley16-Nov-03 8:52 
GeneralRe: Window Forms inside Controls Pin
J. Dunlap16-Nov-03 9:21
J. Dunlap16-Nov-03 9:21 
GeneralIt's done in the IDE Pin
I G 19816-Nov-03 10:38
I G 19816-Nov-03 10:38 

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.