Click here to Skip to main content
16,004,806 members
Home / Discussions / C#
   

C#

 
GeneralRe: Running SQL Express and a C# program on a pentium 3 computer Pin
LongRange.Shooter4-Oct-06 14:32
LongRange.Shooter4-Oct-06 14:32 
GeneralRe: Running SQL Express and a C# program on a pentium 3 computer Pin
WillemM4-Oct-06 20:12
WillemM4-Oct-06 20:12 
QuestionNewbie: Should I use an array? And how? Pin
Phillip Hodges3-Oct-06 22:33
Phillip Hodges3-Oct-06 22:33 
AnswerRe: Newbie: Should I use an array? And how? Pin
Stefan Troschuetz3-Oct-06 22:37
Stefan Troschuetz3-Oct-06 22:37 
GeneralRe: Newbie: Should I use an array? And how? Pin
Phillip Hodges3-Oct-06 22:38
Phillip Hodges3-Oct-06 22:38 
AnswerRe: Newbie: Should I use an array? And how? Pin
Kevin McFarlane3-Oct-06 23:42
Kevin McFarlane3-Oct-06 23:42 
AnswerRe: Newbie: Should I use an array? And how? Pin
ejuanpp4-Oct-06 4:00
ejuanpp4-Oct-06 4:00 
AnswerRe: Newbie: Should I use an array? And how? Pin
LongRange.Shooter4-Oct-06 6:55
LongRange.Shooter4-Oct-06 6:55 
Ahh now this sound like my kind of tool. I planned on writing something similar once to graphically map transactions as they moved through BizTalk.

When you use an ArrayList or List<> the structure is such that an initial size is created and dynamically grows as you add additional items. It is better in the performance department if you generally know how many items will go into the array, but it is not a necessity.

You can also deploy custom dictionaries as well so you may want to do something like this:

Applications go into a List<icommunicators> (all the applications inherit the same interface making it easy to store different programs but treat them as the same type)

Application fires a trigger event
Listener (your code) plots that event but also adds to a Dictionary<string, eventlist="">

ReceivedEventEventHandler(object sender, ListenerEventArgs e)
{
      ICommunicator details = (ICommunicator)sender;
      PlotEvent(details.Name, e.EventObject);
      dictionary[details.Name].Add(e);
}


Now you can expose a menu selection to show historical event data for any program in the list, trending across applications, frequency of events across time, and other fun statistical stuff.
Questionzip and unzip in .net 2.0 Pin
DownBySpj3-Oct-06 21:54
DownBySpj3-Oct-06 21:54 
AnswerRe: zip and unzip in .net 2.0 Pin
Chris Buckett3-Oct-06 22:02
Chris Buckett3-Oct-06 22:02 
QuestionC# Compiling Pin
slSoftware3-Oct-06 21:26
slSoftware3-Oct-06 21:26 
AnswerRe: C# Compiling Pin
CWIZO3-Oct-06 22:32
CWIZO3-Oct-06 22:32 
GeneralRe: C# Compiling Pin
slSoftware3-Oct-06 22:55
slSoftware3-Oct-06 22:55 
GeneralRe: C# Compiling Pin
CWIZO3-Oct-06 22:58
CWIZO3-Oct-06 22:58 
GeneralRe: C# Compiling Pin
slSoftware3-Oct-06 23:16
slSoftware3-Oct-06 23:16 
GeneralStandard questions Pin
Guffa3-Oct-06 23:21
Guffa3-Oct-06 23:21 
GeneralRe: Standard questions Pin
CWIZO3-Oct-06 23:31
CWIZO3-Oct-06 23:31 
AnswerRe: C# Compiling Pin
Christian Graus3-Oct-06 23:18
protectorChristian Graus3-Oct-06 23:18 
GeneralRe: C# Compiling Pin
slSoftware3-Oct-06 23:31
slSoftware3-Oct-06 23:31 
GeneralRe: C# Compiling Pin
Christian Graus3-Oct-06 23:35
protectorChristian Graus3-Oct-06 23:35 
GeneralRe: C# Compiling Pin
slSoftware3-Oct-06 23:43
slSoftware3-Oct-06 23:43 
QuestionMaking label transparent on top of a picturebox Pin
JacquesDP3-Oct-06 21:01
JacquesDP3-Oct-06 21:01 
AnswerRe: Making label transparent on top of a picturebox Pin
Chris Buckett3-Oct-06 21:58
Chris Buckett3-Oct-06 21:58 
GeneralRe: Making label transparent on top of a picturebox Pin
JacquesDP3-Oct-06 23:13
JacquesDP3-Oct-06 23:13 
QuestionInheriting a class and using property grid Pin
kselman3-Oct-06 20:38
kselman3-Oct-06 20: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.