How do i send ctrl-E through serial port MSComm1 ? it should keep on passing ctrl-E....like for loop or do while loop..Here is my code:
MSComm1.CommPort = Convert.ToInt16(Settings.Default.PortName); SendKeys.Send("^(e)");
MSComm1.Settings = Settings.Default.BaudRate.ToString().Trim() + "," + Settings.Default.Parity.Substring(0, 1).ToString().Trim() + "," + Settings.Default.DataBits.ToString().Trim() + "," + Settings.Default.StopBits.ToString().Trim();
MSComm1.PortOpen = true;
MSComm1.InputLen = 0;
MSComm1.InputMode = MSCommLib.InputModeConstants.comInputModeText;
if (Settings.Default.FlowControl == "Xon/Xoff")
{
MSComm1.Handshaking = MSCommLib.HandshakeConstants.comXOnXoff;
}
else if (Settings.Default.FlowControl == "None")
{
MSComm1.Handshaking = MSCommLib.HandshakeConstants.comNone;
}
else if (Settings.Default.FlowControl == "RTS")
{
MSComm1.Handshaking = MSCommLib.HandshakeConstants.comRTS;
}
else if (Settings.Default.FlowControl == "RTSXon/Xoff")
{
MSComm1.Handshaking = MSCommLib.HandshakeConstants.comRTSXOnXOff;
}