Click here to Skip to main content
15,896,912 members
Home / Discussions / C#
   

C#

 
AnswerRe: Generate Word Report fails with System.Runtime.InteropServices.COMException (0x800A1066): Command Failed Pin
_Erik_10-Nov-10 1:58
_Erik_10-Nov-10 1:58 
GeneralRe: Generate Word Report fails with System.Runtime.InteropServices.COMException (0x800A1066): Command Failed Pin
tschueggi10-Nov-10 2:20
tschueggi10-Nov-10 2:20 
GeneralRe: Generate Word Report fails with System.Runtime.InteropServices.COMException (0x800A1066): Command Failed Pin
_Erik_10-Nov-10 2:52
_Erik_10-Nov-10 2:52 
GeneralRe: Generate Word Report fails with System.Runtime.InteropServices.COMException (0x800A1066): Command Failed Pin
tschueggi10-Nov-10 4:42
tschueggi10-Nov-10 4:42 
GeneralRe: Generate Word Report fails with System.Runtime.InteropServices.COMException (0x800A1066): Command Failed Pin
_Erik_10-Nov-10 7:12
_Erik_10-Nov-10 7:12 
QuestionHelp with serial data display Pin
turbosupramk39-Nov-10 1:58
turbosupramk39-Nov-10 1:58 
AnswerRe: Help with serial data display Pin
OriginalGriff9-Nov-10 2:17
mveOriginalGriff9-Nov-10 2:17 
GeneralRe: Help with serial data display Pin
turbosupramk39-Nov-10 2:26
turbosupramk39-Nov-10 2:26 
Hi,

Here is the guts of it


private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
    if (serialPort1.IsOpen) serialPort1.Close();
}

private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{

    if(!serialPort1.IsOpen) return;

    char[] buff = new char[1];

    buff[0] = e.KeyChar;

    serialPort1.Write(buff, 0, 1);

    e.Handled = true;
}

private void DisplayText(object sender, EventArgs e)
{
    textBox1.AppendText(RxString);

}

private void serialPort1_DataReceived
  (object sender, System.IO.Ports.SerialDataReceivedEventArgs e)
{
    RxString = serialPort1.ReadExisting();
    this.Invoke(new EventHandler(DisplayText));
}

GeneralRe: Help with serial data display Pin
OriginalGriff9-Nov-10 4:21
mveOriginalGriff9-Nov-10 4:21 
GeneralRe: Help with serial data display Pin
turbosupramk39-Nov-10 6:38
turbosupramk39-Nov-10 6:38 
GeneralRe: Help with serial data display Pin
OriginalGriff9-Nov-10 8:21
mveOriginalGriff9-Nov-10 8:21 
GeneralRe: Help with serial data display Pin
ColinBurnell9-Nov-10 21:41
professionalColinBurnell9-Nov-10 21:41 
GeneralRe: Help with serial data display Pin
turbosupramk310-Nov-10 2:23
turbosupramk310-Nov-10 2:23 
GeneralRe: Help with serial data display Pin
ColinBurnell10-Nov-10 21:20
professionalColinBurnell10-Nov-10 21:20 
AnswerRe: Help with serial data display Pin
Luc Pattyn9-Nov-10 7:26
sitebuilderLuc Pattyn9-Nov-10 7:26 
GeneralRe: Help with serial data display Pin
turbosupramk39-Nov-10 7:42
turbosupramk39-Nov-10 7:42 
AnswerRe: Help with serial data display Pin
Luc Pattyn9-Nov-10 7:50
sitebuilderLuc Pattyn9-Nov-10 7:50 
GeneralRe: Help with serial data display Pin
turbosupramk39-Nov-10 10:31
turbosupramk39-Nov-10 10:31 
GeneralRe: Help with serial data display Pin
Luc Pattyn9-Nov-10 10:52
sitebuilderLuc Pattyn9-Nov-10 10:52 
GeneralRe: Help with serial data display Pin
turbosupramk39-Nov-10 16:24
turbosupramk39-Nov-10 16:24 
GeneralRe: Help with serial data display Pin
Luc Pattyn9-Nov-10 16:48
sitebuilderLuc Pattyn9-Nov-10 16:48 
GeneralRe: Help with serial data display Pin
turbosupramk310-Nov-10 3:03
turbosupramk310-Nov-10 3:03 
GeneralRe: Help with serial data display Pin
NedPat10-Nov-10 19:38
NedPat10-Nov-10 19:38 
GeneralRe: Help with serial data display Pin
ShafiqA11-Nov-10 18:29
ShafiqA11-Nov-10 18:29 
GeneralRe: Help with serial data display Pin
Adam Yonce10-Nov-10 2:50
Adam Yonce10-Nov-10 2:50 

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.