Click here to Skip to main content
16,008,183 members
Home / Discussions / C#
   

C#

 
AnswerRe: Open and Close a form on one Button Pin
Paul Conrad1-Dec-07 9:18
professionalPaul Conrad1-Dec-07 9:18 
Questionevent question Pin
thepersonof1-Dec-07 1:51
thepersonof1-Dec-07 1:51 
AnswerRe: event question Pin
Zoltan Balazs1-Dec-07 11:48
Zoltan Balazs1-Dec-07 11:48 
Questionawhat is refrence Pin
wasimsharp1-Dec-07 0:55
wasimsharp1-Dec-07 0:55 
AnswerRe: awhat is refrence Pin
pmarfleet1-Dec-07 2:19
pmarfleet1-Dec-07 2:19 
GeneralRe: awhat is refrence Pin
Paul Conrad1-Dec-07 9:19
professionalPaul Conrad1-Dec-07 9:19 
QuestionHow to Detect a device connection? Pin
Vicky2Galaxy1-Dec-07 0:50
Vicky2Galaxy1-Dec-07 0:50 
AnswerRe: How to Detect a device connection? Pin
Luc Pattyn1-Dec-07 2:54
sitebuilderLuc Pattyn1-Dec-07 2:54 
Hi,

there basically are two approaches, both requiring some cooperation from the device:

1.
by hardware signaling:
if your device is pulling one of the control pins, you can detect that by looking at
some SerialPort properties (CtsHolding, CdHolding, ...) or wiring its PinChanged event.
Of course that would not tell you for sure which device is attached.

2.
by software polling:
the device might periodically send some data, which you could read (possibly thru the
DataReceived event); or you could periodically ask it to send something (timer+Write+Read).

Smile | :)


Luc Pattyn [Forum Guidelines] [My Articles]


this months tips:
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use PRE tags to preserve formatting when showing multi-line code snippets


GeneralRe: How to Detect a device connection? Pin
Vicky2Galaxy1-Dec-07 20:52
Vicky2Galaxy1-Dec-07 20:52 
Questionhow to increase decrease form size on timer tick Pin
D i x y1-Dec-07 0:31
D i x y1-Dec-07 0:31 
AnswerRe: how to increase decrease form size on timer tick Pin
Anthony Mushrow1-Dec-07 2:22
professionalAnthony Mushrow1-Dec-07 2:22 
QuestionHow to Change a color in TextBox? Pin
vijayashanthi30-Nov-07 23:53
vijayashanthi30-Nov-07 23:53 
AnswerRe: How to Change a color in TextBox? Pin
pmarfleet1-Dec-07 2:15
pmarfleet1-Dec-07 2:15 
Questionwhat is assembly Pin
wasimsharp30-Nov-07 23:18
wasimsharp30-Nov-07 23:18 
AnswerRe: what is assembly Pin
Christian Graus30-Nov-07 23:51
protectorChristian Graus30-Nov-07 23:51 
AnswerRe: what is assembly Pin
Zoltan Balazs1-Dec-07 11:54
Zoltan Balazs1-Dec-07 11:54 
QuestionReading a file and parsing the content to string array Pin
PS@Codeproj30-Nov-07 23:05
PS@Codeproj30-Nov-07 23:05 
AnswerRe: Reading a file and parsing the content to string array Pin
Christian Graus30-Nov-07 23:52
protectorChristian Graus30-Nov-07 23:52 
AnswerRe: Reading a file and parsing the content to string array Pin
PIEBALDconsult1-Dec-07 3:56
mvePIEBALDconsult1-Dec-07 3:56 
Questionexpression blend database problem !!!! Pin
angels77730-Nov-07 22:35
angels77730-Nov-07 22:35 
AnswerRe: expression blend database problem !!!! Pin
angels77730-Nov-07 23:24
angels77730-Nov-07 23:24 
Questionerror(class1.cs is inaccessible due to protection level) Pin
chanzeb30-Nov-07 21:53
chanzeb30-Nov-07 21:53 
AnswerRe: error(class1.cs is inaccessible due to protection level) Pin
Pankaj - Joshi30-Nov-07 21:59
Pankaj - Joshi30-Nov-07 21:59 
GeneralRe: error(class1.cs is inaccessible due to protection level) Pin
chanzeb30-Nov-07 22:07
chanzeb30-Nov-07 22:07 
GeneralRe: error(class1.cs is inaccessible due to protection level) Pin
Christian Graus30-Nov-07 22:20
protectorChristian Graus30-Nov-07 22:20 

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.