Click here to Skip to main content
15,916,846 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to implement a screenlock Pin
Tamimi - Code8-Nov-06 20:05
Tamimi - Code8-Nov-06 20:05 
GeneralRe: How to implement a screenlock Pin
jamesjk8-Nov-06 20:47
jamesjk8-Nov-06 20:47 
AnswerRe: How to implement a screenlock Pin
mav.northwind10-Nov-06 20:52
mav.northwind10-Nov-06 20:52 
GeneralRe: How to implement a screenlock Pin
jamesjk12-Nov-06 22:13
jamesjk12-Nov-06 22:13 
QuestionHow can I go to the last visited tab when the current tab is removed? Pin
AngryC8-Nov-06 19:13
AngryC8-Nov-06 19:13 
AnswerRe: How can I go to the last visited tab when the current tab is removed? Pin
quiteSmart8-Nov-06 19:41
quiteSmart8-Nov-06 19:41 
GeneralRe: How can I go to the last visited tab when the current tab is removed? Pin
jiugarte9-Nov-06 1:00
jiugarte9-Nov-06 1:00 
QuestionPocket PC database file .sdf does not being updated after closing applciation. Pin
Aman K Kirar8-Nov-06 18:52
Aman K Kirar8-Nov-06 18:52 
QuestionHow to convert a C# .NET application into an Eclipse Plugin Pin
Sarvan AL8-Nov-06 18:50
Sarvan AL8-Nov-06 18:50 
AnswerRe: How to convert a C# .NET application into an Eclipse Plugin Pin
Christian Graus8-Nov-06 20:12
protectorChristian Graus8-Nov-06 20:12 
QuestionApplication.Exit(); not working when backgroundWorker.IsBusy! Pin
AngryC8-Nov-06 18:47
AngryC8-Nov-06 18:47 
AnswerRe: Application.Exit(); not working when backgroundWorker.IsBusy! Pin
quiteSmart8-Nov-06 19:49
quiteSmart8-Nov-06 19:49 
QuestionProcess not to show in Task manager Pin
Rahul.RK8-Nov-06 17:59
Rahul.RK8-Nov-06 17:59 
AnswerRe: Process not to show in Task manager Pin
Christian Graus8-Nov-06 18:25
protectorChristian Graus8-Nov-06 18:25 
GeneralRe: Process not to show in Task manager Pin
Rahul.RK8-Nov-06 18:42
Rahul.RK8-Nov-06 18:42 
GeneralRe: Process not to show in Task manager Pin
Stephen Hewitt8-Nov-06 20:01
Stephen Hewitt8-Nov-06 20:01 
GeneralRe: Process not to show in Task manager Pin
Colin Angus Mackay8-Nov-06 22:25
Colin Angus Mackay8-Nov-06 22:25 
QuestionValue for the DateTime field Displayed in DataGridView is getting Edited. Pin
vinutha kempanna8-Nov-06 17:42
vinutha kempanna8-Nov-06 17:42 
QuestionWS-Security Pin
jpusany8-Nov-06 16:36
jpusany8-Nov-06 16:36 
QuestionCalling an unmanaged C++ dll from a C# application Pin
hybrid798-Nov-06 16:18
hybrid798-Nov-06 16:18 
AnswerRe: Calling an unmanaged C++ dll from a C# application [modified] Pin
George L. Jackson8-Nov-06 16:45
George L. Jackson8-Nov-06 16:45 
QuestionHow to allow a user to type only two digits after a decimal point in typed Pin
garrymullins8-Nov-06 14:10
garrymullins8-Nov-06 14:10 
AnswerRe: How to allow a user to type only two digits after a decimal point in typed Pin
Christian Graus8-Nov-06 15:06
protectorChristian Graus8-Nov-06 15:06 
QuestionNeed help capturing the context menu Pin
erikkl20008-Nov-06 14:10
erikkl20008-Nov-06 14:10 
QuestionStrange behavior with ArrayList remove [modified] Pin
malharone8-Nov-06 13:50
malharone8-Nov-06 13:50 
I'm working with the following Remove code. My code is failing at line # 6 and throwing an exception. I don't understand why "index == -1" (see immidiate-window output) is evaluating to true, eventhough my immidiate window is returning true for existance of 'column' object in the ArrayList. Furthermore, if I comment out lines #4-7 then the all is golden.

Any help would be appreciated.

Thanks,

- Malhar

public class ColumnCollection
{
	ArrayList _columnList;	//Assume this is initialized and properly populated

	...

1:	public void Remove (TreeListColumn column)
2:	{
3:		int index = _columnList.IndexOf (column)
4:		if (index == -1)
5:		{
6:			throw new ArgOutOfRangeException (...);
7:		}
8:		_columnList.RemoveAt (index);
9:	}

	...
}


Immidiate/Command Window (Break point at line # 3):
column == _columnList[4] ==> true
Object.ReferenceEquals (column, _columnList[4] ==> true
_columnList.IndexOf(column)				==>	-1 :wtf:

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.