Click here to Skip to main content
15,889,116 members
Home / Discussions / C#
   

C#

 
AnswerRe: led to rs232 Pin
Luc Pattyn1-Nov-09 13:28
sitebuilderLuc Pattyn1-Nov-09 13:28 
GeneralRe: led to rs232 Pin
_Q12_1-Nov-09 13:53
_Q12_1-Nov-09 13:53 
GeneralRe: led to rs232 Pin
Luc Pattyn1-Nov-09 14:15
sitebuilderLuc Pattyn1-Nov-09 14:15 
GeneralRe: led to rs232 Pin
_Q12_1-Nov-09 14:43
_Q12_1-Nov-09 14:43 
GeneralRe: led to rs232 Pin
_Q12_1-Nov-09 16:18
_Q12_1-Nov-09 16:18 
Questionmain form is not activated Pin
Maddie from Dartford1-Nov-09 12:05
Maddie from Dartford1-Nov-09 12:05 
AnswerRe: main form is not activated Pin
Christian Graus1-Nov-09 12:07
protectorChristian Graus1-Nov-09 12:07 
QuestionMaking custom control subscribe to external event ? Need Approach advise... Pin
idan_bismut1-Nov-09 9:30
idan_bismut1-Nov-09 9:30 
I'm trying to think on best way to implant something, and i'm uncertain as to what approach should i take.

Background:
1. i have PCI card (digital I/O card) that can acquire up to 96 inputs (each input reads as '1' or '0').
2. I'm developing panel for that card, that will display for user 96 LEDs (each with name next to it) - led lit = 1, led not lit = 0.
3. panel update at runtime without need to press anything.

The first approach that comes to my mind is:
1. 96 LEDs are generated on form at runtime (each with line input name).
2. run via loop: run async function using BeginInvoke that read input x value, then invoke main thread to update LED to on/off (based on value we've just read).

Possible problems:
overhead / GUI update speed.

I was thinking if i could somehow make certain led "subscribe" to a bit change on some array that is updated with changes, and that could somehow auto-fire the event & control would just "toggle" itslef to 1/0 (without me needing to address him).

Now i guess i could use singleton to refrence inside the custom control (led + label), but is there any better alternative / approach I should use ?? (aiming for max performance)
AnswerRe: Making custom control subscribe to external event ? Need Approach advise... Pin
Christian Graus1-Nov-09 9:42
protectorChristian Graus1-Nov-09 9:42 
AnswerRe: Making custom control subscribe to external event ? Need Approach advise... Pin
DaveyM691-Nov-09 10:52
professionalDaveyM691-Nov-09 10:52 
Questionhow to create a chart Pin
h.pordel1-Nov-09 9:20
h.pordel1-Nov-09 9:20 
AnswerRe: how to create a chart Pin
Christian Graus1-Nov-09 9:24
protectorChristian Graus1-Nov-09 9:24 
GeneralRe: how to create a chart Pin
h.pordel1-Nov-09 9:39
h.pordel1-Nov-09 9:39 
GeneralRe: how to create a chart Pin
Christian Graus1-Nov-09 9:40
protectorChristian Graus1-Nov-09 9:40 
GeneralRe: how to create a chart Pin
h.pordel1-Nov-09 9:49
h.pordel1-Nov-09 9:49 
GeneralRe: how to create a chart Pin
Christian Graus1-Nov-09 9:51
protectorChristian Graus1-Nov-09 9:51 
GeneralRe: how to create a chart Pin
h.pordel1-Nov-09 9:59
h.pordel1-Nov-09 9:59 
GeneralRe: how to create a chart Pin
Christian Graus1-Nov-09 10:10
protectorChristian Graus1-Nov-09 10:10 
AnswerRe: how to create a chart Pin
Henry Minute1-Nov-09 9:30
Henry Minute1-Nov-09 9:30 
QuestionRedirecting keystrokes to a RichTextBox Control in C# Pin
pbalaga1-Nov-09 9:02
pbalaga1-Nov-09 9:02 
AnswerRe: Redirecting keystrokes to a RichTextBox Control in C# Pin
Christian Graus1-Nov-09 9:14
protectorChristian Graus1-Nov-09 9:14 
GeneralRe: Redirecting keystrokes to a RichTextBox Control in C# Pin
pbalaga3-Nov-09 8:27
pbalaga3-Nov-09 8:27 
Questionhelp me Pin
Arefeh Haghpnah1-Nov-09 8:39
Arefeh Haghpnah1-Nov-09 8:39 
AnswerRe: help me Pin
Christian Graus1-Nov-09 8:48
protectorChristian Graus1-Nov-09 8:48 
GeneralRe: help me Pin
Arefeh Haghpnah2-Nov-09 7:54
Arefeh Haghpnah2-Nov-09 7:54 

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.