Click here to Skip to main content
15,923,789 members
Home / Discussions / C#
   

C#

 
GeneralProblem with .NET DES encryption Pin
Radoslav Bielik25-Jan-05 22:45
Radoslav Bielik25-Jan-05 22:45 
GeneralRe: Problem with .NET DES encryption Pin
Radoslav Bielik25-Jan-05 23:00
Radoslav Bielik25-Jan-05 23:00 
GeneralDebug Manager Service Pin
mitreviper25-Jan-05 20:18
mitreviper25-Jan-05 20:18 
GeneralControls using DataGrid at Runtime Pin
venkateshsubramaniyam25-Jan-05 20:08
venkateshsubramaniyam25-Jan-05 20:08 
GeneralQuestion of Form Refresh Pin
jzb25-Jan-05 20:07
jzb25-Jan-05 20:07 
GeneralRe: Question of Form Refresh Pin
mav.northwind25-Jan-05 20:32
mav.northwind25-Jan-05 20:32 
GeneralRe: Question of Form Refresh Pin
jzb25-Jan-05 22:42
jzb25-Jan-05 22:42 
GeneralRe: Question of Form Refresh Pin
mav.northwind25-Jan-05 23:05
mav.northwind25-Jan-05 23:05 
GeneralRe: Question of Form Refresh Pin
damphlett26-Jan-05 3:18
damphlett26-Jan-05 3:18 
GeneralDTS (Import/Export) Pin
ye win zaw25-Jan-05 17:13
ye win zaw25-Jan-05 17:13 
General.NET framework version questions... Pin
new_phoenix25-Jan-05 14:21
new_phoenix25-Jan-05 14:21 
GeneralRe: .NET framework version questions... Pin
Nick Parker25-Jan-05 17:27
protectorNick Parker25-Jan-05 17:27 
GeneralRe: .NET framework version questions... Pin
new_phoenix27-Jan-05 5:25
new_phoenix27-Jan-05 5:25 
QuestionCan no longer view Help(CHM) through windows application Pin
Mike Balfour25-Jan-05 13:29
Mike Balfour25-Jan-05 13:29 
GeneralProcedure Parameter Pointer Pin
Budi Zhu25-Jan-05 11:24
Budi Zhu25-Jan-05 11:24 
GeneralRe: Procedure Parameter Pointer Pin
Dennis C. Dietrich25-Jan-05 12:13
Dennis C. Dietrich25-Jan-05 12:13 
GeneralA Design question [offtopic?] Pin
moredip25-Jan-05 11:03
moredip25-Jan-05 11:03 
GeneralRe: A Design question [offtopic?] Pin
Skynyrd25-Jan-05 12:01
Skynyrd25-Jan-05 12:01 
GeneralRe: A Design question [offtopic?] Pin
moredip25-Jan-05 12:19
moredip25-Jan-05 12:19 
GeneralRe: A Design question [offtopic?] Pin
Skynyrd25-Jan-05 12:47
Skynyrd25-Jan-05 12:47 
GeneralRe: A Design question [offtopic?] Pin
moredip25-Jan-05 13:45
moredip25-Jan-05 13:45 
GeneralRe: A Design question [offtopic?] Pin
Anonymous25-Jan-05 21:56
Anonymous25-Jan-05 21:56 
GeneralCOM Port in Visual C# 2005 Pin
Juan Pablo G.C.25-Jan-05 9:08
Juan Pablo G.C.25-Jan-05 9:08 
GeneralRe: COM Port in Visual C# 2005 Pin
Stefan Troschuetz25-Jan-05 21:41
Stefan Troschuetz25-Jan-05 21:41 
GeneralCOM Port in Visual C# 2005 Pin
Juan Pablo G.C.25-Jan-05 9:06
Juan Pablo G.C.25-Jan-05 9:06 
There's a new possibility in the System.IO that is accesing to Port Coms: System.IO.Ports, I'm not good with delegates and I'm trying to make a program that when receives a data from the serial port makes and event:

 private void Form1_Load(object sender, EventArgs e)<br />
        {<br />
            ptocom.ReceivedEvent +=new SerialReceivedEventHandler(ptocom_ReceivedEvent);<br />
   //It's not complete but I dont know how to put it well     <br />
}<br />
<br />
        void ptocom_ReceivedEvent(object sender, SerialReceivedEventArgs e)<br />
        {<br />
            //Type tipo; ?<br />
            //tipo = e.EventType.GetType(); ?<br />
            <br />
            //taken.Text = tipo.ToString(); ?<br />
            //taken.Text = buffer;<br />
            //throw new NotImplementedException(); <-thats appear automatic ?<br />
        }<br />
<br />
        private void button1_Click(object sender, EventArgs e)<br />
        {<br />
            SerialPort ptocom = new SerialPort("COM1", 9600, System.IO.Ports.Parity.None, 8, StopBits.One);<br />
            string buffer = "j";<br />
            ptocom.Open();<br />
            ptocom.ReadTo(buffer);<br />
        }


Thats all I could discover about using this new possibilities but It doesnt work, any Idea?


Juan Pablo García Coello. Electronic Engineer.
Projectist at the Electronic Dept.Instituto de Astrofísica de Canarias. Spain

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.