Click here to Skip to main content
15,909,325 members
Home / Discussions / C#
   

C#

 
Generaltrim byte[] to new size - after socket.receive Pin
MeisterBiber9-Aug-03 23:27
MeisterBiber9-Aug-03 23:27 
GeneralRe: trim byte[] to new size - after socket.receive Pin
Taka Muraoka9-Aug-03 23:51
Taka Muraoka9-Aug-03 23:51 
GeneralRe: trim byte[] to new size - after socket.receive Pin
Nick Seng10-Aug-03 17:28
Nick Seng10-Aug-03 17:28 
GeneralRe: trim byte[] to new size - after socket.receive Pin
Anthony_Yio11-Aug-03 2:00
Anthony_Yio11-Aug-03 2:00 
GeneralRe: trim byte[] to new size - after socket.receive Pin
Ista10-Aug-03 13:14
Ista10-Aug-03 13:14 
Generalcontrol the connection Pin
Ahmed Mazrou39-Aug-03 17:16
Ahmed Mazrou39-Aug-03 17:16 
GeneralRe: control the connection Pin
Ista10-Aug-03 10:18
Ista10-Aug-03 10:18 
GeneralIF STATMENT Pin
eggie59-Aug-03 17:01
eggie59-Aug-03 17:01 
Here's my class...

using System;
using System.Windows.Forms;

namespace GPG__
{

	/// <summary>
	/// Summary description for logging.
	/// </summary>
	public class logging
	{
		LOG logForm=new LOG();
		aOut caller=new aOut();
		Form1 guiForm=new Form1();

		int k;
	
		public logging(string [] aLog, string start, string end, string duration, int delay, string file)
		{
			logForm.Show();
			
			logForm.listBoxLog.Items.Add(DateTime.Now.ToString("hh:mm:ss")+": Processing: "+file);

<big>			if(guiForm.checkBoxEnableDelay.Checked==true)
			{
				MessageBox.Show("CHECKED");
				logForm.listBoxLog.Items.Add(DateTime.Now.ToString("hh:mm:ss")+": Delay "+delay.ToString());
			}
			else
			{
				MessageBox.Show("NOT CHECKED");
			}</big>			
for (k=1; k<aLog.Length; k++)
				
				logForm.listBoxLog.Items.Add(DateTime.Now.ToString("hh:mm:ss")+": ["+aLog[k].ToString()+"]");
		}
	}
}


Now, look at the if statment asking if checkBoxEnableDelay is checked...

When ever I run this, it always evaluates to false, and the else stament runs... and yes, the box IS checked...

If I put the same code on my main FORM it runs fine...

WHat is the problem?

p.s. (ignore the broken for statment at the bottom... it's not like that in my code..._)



/\ |_ E X E GG
GeneralRe: IF STATMENT Pin
eggie59-Aug-03 17:41
eggie59-Aug-03 17:41 
GeneralRe: IF STATMENT Pin
Csharp™10-Aug-03 0:25
Csharp™10-Aug-03 0:25 
GeneralRe: IF STATMENT Pin
eggie510-Aug-03 18:23
eggie510-Aug-03 18:23 
GeneralPlease help decipher this MSDN threading sample! Pin
devvvy9-Aug-03 16:26
devvvy9-Aug-03 16:26 
GeneralRe: Please help decipher this MSDN threading sample! Pin
Meysam Mahfouzi10-Aug-03 17:31
Meysam Mahfouzi10-Aug-03 17:31 
GeneralRe: Please help decipher this MSDN threading sample! Pin
devvvy11-Aug-03 2:56
devvvy11-Aug-03 2:56 
GeneralRe: Please help decipher this MSDN threading sample! Pin
devvvy13-Aug-03 6:57
devvvy13-Aug-03 6:57 
GeneralWSDL question Pin
Mazdak9-Aug-03 9:52
Mazdak9-Aug-03 9:52 
GeneralRe: WSDL question Pin
James T. Johnson9-Aug-03 11:27
James T. Johnson9-Aug-03 11:27 
GeneralRe: WSDL question Pin
Ista9-Aug-03 12:13
Ista9-Aug-03 12:13 
GeneralRe: WSDL question Pin
Mazdak10-Aug-03 1:54
Mazdak10-Aug-03 1:54 
GeneralRe: WSDL question Pin
Ista10-Aug-03 9:53
Ista10-Aug-03 9:53 
Generalcode for email address validation on logon web application Pin
gilstelzer9-Aug-03 6:09
gilstelzer9-Aug-03 6:09 
GeneralRe: code for email address validation on logon web application Pin
leppie9-Aug-03 7:36
leppie9-Aug-03 7:36 
GeneralNUnit testing in Visual Studio Pin
Will Ballard9-Aug-03 4:27
Will Ballard9-Aug-03 4:27 
GeneralFinding Char Index in current line Pin
.gonad9-Aug-03 2:35
.gonad9-Aug-03 2:35 
GeneralRe: Finding Char Index in current line Pin
Ista9-Aug-03 5:12
Ista9-Aug-03 5:12 

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.