Click here to Skip to main content
15,892,480 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# execute console application Pin
glennPattonWork35-Sep-12 5:59
professionalglennPattonWork35-Sep-12 5:59 
GeneralRe: C# execute console application Pin
Shameel5-Sep-12 6:27
professionalShameel5-Sep-12 6:27 
GeneralRe: C# execute console application Pin
glennPattonWork35-Sep-12 22:07
professionalglennPattonWork35-Sep-12 22:07 
AnswerRe: C# execute console application Pin
PIEBALDconsult5-Sep-12 6:06
mvePIEBALDconsult5-Sep-12 6:06 
GeneralRe: C# execute console application Pin
dcof5-Sep-12 7:52
dcof5-Sep-12 7:52 
GeneralRe: C# execute console application Pin
PIEBALDconsult5-Sep-12 8:20
mvePIEBALDconsult5-Sep-12 8:20 
AnswerRe: C# execute console application Pin
jschell5-Sep-12 11:38
jschell5-Sep-12 11:38 
QuestionSerial Port security? Pin
glennPattonWork35-Sep-12 5:34
professionalglennPattonWork35-Sep-12 5:34 
Hi All,
I am try to make a program user proof (though but...) I have now got it to find the device plugged in at initial run time, it runs fine on talking to one device, closes the comm port, changes the comm port, reopens the comm port. I am trying to do this by
C#
nameArray = SerialPort.GetPortNames();
         do
         {
             index += 1;
             cboPort.Items.Add(nameArray[index]);
         }
         while (!((nameArray[index] == myComPortName) || (index == nameArray.GetUpperBound(0))));

While this works fine on initial set up, it appears to work on subsequent runs but after the fourth or so run it comes up with an error mostly due I think to the fact that I am setting the serial port property with out touching the rest. <<test it="">> Well tried that did <> didn't work, I am now thinking I am trying to reassign a com port that is in use but I closed it so I should be able to??? Have I fallen foul of a security feature?
Glenn
Glenn
SuggestionRe: Serial Port security? Pin
Eddy Vluggen5-Sep-12 5:57
professionalEddy Vluggen5-Sep-12 5:57 
GeneralRe: Serial Port security? Pin
glennPattonWork35-Sep-12 6:03
professionalglennPattonWork35-Sep-12 6:03 
Questionextract form Pin
farhad34505-Sep-12 3:28
farhad34505-Sep-12 3:28 
AnswerRe: extract form Pin
Ravi Bhavnani5-Sep-12 3:36
professionalRavi Bhavnani5-Sep-12 3:36 
AnswerRe: extract form Pin
Ingo5-Sep-12 3:49
Ingo5-Sep-12 3:49 
AnswerRe: extract form Pin
Abhinav S5-Sep-12 4:00
Abhinav S5-Sep-12 4:00 
QuestionAddAccessRule to Directory for Usergroups of another Domain Pin
Ingo5-Sep-12 2:25
Ingo5-Sep-12 2:25 
QuestionProperty grid problem Pin
Soni_moni5-Sep-12 2:02
Soni_moni5-Sep-12 2:02 
QuestionRe: Property grid problem Pin
Eddy Vluggen5-Sep-12 5:33
professionalEddy Vluggen5-Sep-12 5:33 
QuestionHelp about SocketAsyncEventArgs Pin
wanli_gao4-Sep-12 22:28
wanli_gao4-Sep-12 22:28 
AnswerRe: Help about SocketAsyncEventArgs Pin
Richard MacCutchan4-Sep-12 23:56
mveRichard MacCutchan4-Sep-12 23:56 
AnswerRe: Help about SocketAsyncEventArgs Pin
Pete O'Hanlon5-Sep-12 1:16
mvePete O'Hanlon5-Sep-12 1:16 
QuestionCore Foundations of .Net (2956B) Pin
Member 93770754-Sep-12 22:22
Member 93770754-Sep-12 22:22 
AnswerRe: Core Foundations of .Net (2956B) Pin
Richard MacCutchan4-Sep-12 23:58
mveRichard MacCutchan4-Sep-12 23:58 
AnswerRe: Core Foundations of .Net (2956B) Pin
Ravi Bhavnani5-Sep-12 3:40
professionalRavi Bhavnani5-Sep-12 3:40 
Questioncase based reasoning Pin
Dharani Balusamy4-Sep-12 18:46
Dharani Balusamy4-Sep-12 18:46 
AnswerRe: case based reasoning Pin
Pete O'Hanlon4-Sep-12 21:23
mvePete O'Hanlon4-Sep-12 21:23 

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.