Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
AnswerRe: tree view represantation of string Pin
S. Senthil Kumar6-May-06 7:31
S. Senthil Kumar6-May-06 7:31 
Questionrepresentation of string in treeview Pin
majid4u6-May-06 6:06
majid4u6-May-06 6:06 
AnswerRe: representation of string in treeview Pin
Josh Smith6-May-06 6:18
Josh Smith6-May-06 6:18 
QuestionCheck box Databinding problems Pin
malikjhangirahmed@hotmail.com6-May-06 3:23
malikjhangirahmed@hotmail.com6-May-06 3:23 
QuestionHow to use IHTMLDocument2 with .NET 2.0 Webbrowser Pin
cweeks786816-May-06 3:20
cweeks786816-May-06 3:20 
AnswerRe: How to use IHTMLDocument2 with .NET 2.0 Webbrowser Pin
led mike6-May-06 6:40
led mike6-May-06 6:40 
GeneralRe: How to use IHTMLDocument2 with .NET 2.0 Webbrowser Pin
cweeks786816-May-06 8:13
cweeks786816-May-06 8:13 
QuestionDynamic Events (C#)... Pin
Shy Agam6-May-06 2:34
Shy Agam6-May-06 2:34 
That's what I call it, anyway... Smile | :)

I want to write a class that would know how to act on two different cases:
- A single object of it was created.
- An array of objects of it was created.

The purpose of this is to fire a different event for each of the cases.
Lets take WinSck for example...
If you create a single object, you get the regular arguments.
But create an array, and it automatically generates the same event with an additional index argument.

1. How can I detect from within my class if it's used as an array?
2. How can I, after detection, pass the index of the object, without holding an index/id field inside the class?

Thanks in advance,
Shy. Smile | :)

AnswerRe: Dynamic Events (C#)... Pin
mav.northwind6-May-06 3:38
mav.northwind6-May-06 3:38 
AnswerRe: Dynamic Events (C#)... Pin
Guffa6-May-06 3:40
Guffa6-May-06 3:40 
GeneralRe: Dynamic Events (C#)... Pin
Shy Agam6-May-06 4:00
Shy Agam6-May-06 4:00 
QuestionProperty that is an array, bound to a PropertyGrid Pin
-Dy6-May-06 2:31
-Dy6-May-06 2:31 
AnswerRe: Property that is an array, bound to a PropertyGrid Pin
Josh Smith6-May-06 6:13
Josh Smith6-May-06 6:13 
QuestionHow can I determine number of references to an object ? Pin
_awatts6-May-06 2:10
_awatts6-May-06 2:10 
AnswerRe: How can I determine number of references to an object ? Pin
S. Senthil Kumar6-May-06 7:34
S. Senthil Kumar6-May-06 7:34 
QuestionSelecting more than one file types in GetFiles method Pin
Rizwan Rathore6-May-06 0:49
Rizwan Rathore6-May-06 0:49 
AnswerRe: Selecting more than one file types in GetFiles method Pin
alexey N6-May-06 1:37
alexey N6-May-06 1:37 
GeneralRe: Selecting more than one file types in GetFiles method Pin
Rizwan Rathore6-May-06 2:03
Rizwan Rathore6-May-06 2:03 
GeneralRe: Selecting more than one file types in GetFiles method Pin
leppie6-May-06 3:25
leppie6-May-06 3:25 
Questionhow to create dataset programmativally ? Pin
hdv2126-May-06 0:24
hdv2126-May-06 0:24 
AnswerRe: how to create dataset programmativally ? Pin
Josh Smith6-May-06 6:26
Josh Smith6-May-06 6:26 
Questionusing API Pin
RimiAsh5-May-06 23:31
RimiAsh5-May-06 23:31 
AnswerRe: using API Pin
hdv2126-May-06 0:27
hdv2126-May-06 0:27 
QuestionError in TAPI3 Application Pin
biruk_haileye5-May-06 22:25
biruk_haileye5-May-06 22:25 
Questionhow to pass arraylist from C# function to javascript ? Pin
tjpraveen235-May-06 20:21
tjpraveen235-May-06 20:21 

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.