Click here to Skip to main content
15,919,358 members
Home / Discussions / C#
   

C#

 
GeneralRe: Opening notepad from own program Pin
dsl/fahk1-Jan-07 10:27
dsl/fahk1-Jan-07 10:27 
QuestionListview gridlines problem after SP1 install Pin
Glen Harvy30-Dec-06 14:07
Glen Harvy30-Dec-06 14:07 
Questionpoint to a class name with a string from xml Pin
Ariadne30-Dec-06 12:51
Ariadne30-Dec-06 12:51 
AnswerRe: point to a class name with a string from xml Pin
Phillip M. Hoff30-Dec-06 16:22
Phillip M. Hoff30-Dec-06 16:22 
AnswerIm sorry but Pin
Ennis Ray Lynch, Jr.30-Dec-06 17:36
Ennis Ray Lynch, Jr.30-Dec-06 17:36 
QuestionHow to read data from COM port (want to get remote to work) Pin
daniilzol30-Dec-06 10:48
daniilzol30-Dec-06 10:48 
AnswerRe: How to read data from COM port (want to get remote to work) Pin
Dave Kreskowiak30-Dec-06 11:29
mveDave Kreskowiak30-Dec-06 11:29 
GeneralRe: How to read data from COM port (want to get remote to work) [modified] Pin
daniilzol30-Dec-06 11:46
daniilzol30-Dec-06 11:46 
Yes, the port is correct, COM1. I did not use any parameters since I don't know what they are supposed to be and all of the examples I've looked at use default (empty) constructor.

I actually don't know if I can get it to work at all. I've downloaded WinLIRC, just to see if it will be able to read data from remote, but it won't work either.


-- modified at 18:06 Saturday 30th December, 2006

OK, now I'm getting somewhere. Googled for CIMR100 which is the name of the receiver and used the following settings:

m_SerialPort = new SerialPort("COM1",9600,Parity.None,8,StopBits.One);
m_SerialPort.DtrEnable = true;
m_SerialPort.RtsEnable = true;

And it appears to work, at least DataReceived event is firing.

I get an error though: "Cross-thread operation not valid: Control 'txtInput' accessed from a thread other than the thread it was created on." when I try to show data which was read, but at least that's a start and I can work with it.
GeneralRe: How to read data from COM port (want to get remote to work) Pin
gnadeem30-Dec-06 13:29
gnadeem30-Dec-06 13:29 
GeneralRe: How to read data from COM port (want to get remote to work) Pin
daniilzol30-Dec-06 14:54
daniilzol30-Dec-06 14:54 
GeneralRe: How to read data from COM port (want to get remote to work) [modified] Pin
Luc Pattyn30-Dec-06 16:11
sitebuilderLuc Pattyn30-Dec-06 16:11 
GeneralRe: How to read data from COM port (want to get remote to work) Pin
daniilzol31-Dec-06 8:13
daniilzol31-Dec-06 8:13 
QuestionSocket IO interaction with UI Message pump Question? Pin
Member 288953130-Dec-06 10:43
Member 288953130-Dec-06 10:43 
AnswerRe: Socket IO interaction with UI Message pump Question? Pin
Phillip M. Hoff30-Dec-06 17:00
Phillip M. Hoff30-Dec-06 17:00 
Questionproblem for set RememberMe CheckBox in ASP.net Login Control. Pin
hdv21230-Dec-06 10:04
hdv21230-Dec-06 10:04 
AnswerRe: problem for set RememberMe CheckBox in ASP.net Login Control. Pin
Brad Bruce30-Dec-06 10:59
Brad Bruce30-Dec-06 10:59 
QuestionGUI for remote reboots using Shutdown command Pin
namedalias530-Dec-06 8:09
namedalias530-Dec-06 8:09 
AnswerRe: GUI for remote reboots using Shutdown command Pin
Luc Pattyn30-Dec-06 8:54
sitebuilderLuc Pattyn30-Dec-06 8:54 
GeneralRe: GUI for remote reboots using Shutdown command Pin
namedalias530-Dec-06 9:02
namedalias530-Dec-06 9:02 
GeneralRe: GUI for remote reboots using Shutdown command Pin
Luc Pattyn30-Dec-06 9:25
sitebuilderLuc Pattyn30-Dec-06 9:25 
GeneralRe: GUI for remote reboots using Shutdown command Pin
namedalias530-Dec-06 9:29
namedalias530-Dec-06 9:29 
QuestionFolder Protection.. Pin
kkadir30-Dec-06 8:01
kkadir30-Dec-06 8:01 
AnswerRe: Folder Protection.. Pin
Luc Pattyn30-Dec-06 8:56
sitebuilderLuc Pattyn30-Dec-06 8:56 
AnswerRe: Folder Protection.. Pin
Ami Bar30-Dec-06 10:28
Ami Bar30-Dec-06 10:28 
GeneralRe: Folder Protection.. Pin
kkadir30-Dec-06 11:39
kkadir30-Dec-06 11:39 

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.