Click here to Skip to main content
15,904,638 members
Home / Discussions / C#
   

C#

 
QuestionRich text box error... Pin
IamHuM3-Nov-06 21:15
IamHuM3-Nov-06 21:15 
AnswerRe: Rich text box error... Pin
CooperWu3-Nov-06 22:29
CooperWu3-Nov-06 22:29 
GeneralRe: Rich text box error... Pin
IamHuM3-Nov-06 22:46
IamHuM3-Nov-06 22:46 
AnswerRe: Rich text box error... Pin
IamHuM3-Nov-06 22:30
IamHuM3-Nov-06 22:30 
GeneralRe: Rich text box error... Pin
mav.northwind4-Nov-06 1:00
mav.northwind4-Nov-06 1:00 
GeneralRe: Rich text box error... Pin
IamHuM4-Nov-06 1:19
IamHuM4-Nov-06 1:19 
GeneralRe: Rich text box error... Pin
mav.northwind4-Nov-06 1:46
mav.northwind4-Nov-06 1:46 
GeneralRe: Rich text box error... Pin
IamHuM4-Nov-06 3:06
IamHuM4-Nov-06 3:06 
Thanks but...its not working...

Here is some more information ...Can u please help me...?


///////////////////////////////////////////////////////////////////////////////<br />
<br />
/*** This is Main Form code ***/<br />
<br />
public SerialPort comport = new SerialPort();<br />
<br />
public Form f1;<br />
<br />
f1 = new ChildForm();<br />
f1.MdiParent = this;<br />
<br />
comport.DataReceived += new SerialDataReceivedEventHandler(port_DataReceived);<br />
<br />
<br />
private void btn_Senddata_Click(object sender, EventArgs e)<br />
{<br />
      comport.open();<br />
	comport.Write("This is the text to be transmitted");<br />
<br />
}<br />
<br />
public void port_DataReceived(object sender, SerialDataReceivedEventArgs e)<br />
{<br />
            string ReceivedData = comport.ReadExisting();<br />
<br />
            ReceiveLog(LogMsgType.Incoming, ReceivedData);<br />
<br />
if(f1.Controls[0].InvokeRequired)<br />
{<br />
f1.Controls[0].Invoke(new EventHandler(delegate<br />
                  { f1.Controls[0].AppendText(ReceivedData); <br />
}));<br />
}<br />
<br />
<br />
<br />
/*** This is Child Form (f1) code ***/<br />
<br />
RichTextBox MyRichTextBox  = new RichTextBox();//this is decalred ‘public’<br />
<br />
<br />
<br />
<br />
///////////////////////////////////////////////////////////////////////////////




What is the problem,i am not able to understand...


Thanks,
Vinay
GeneralRe: Rich text box error... Pin
mav.northwind4-Nov-06 5:13
mav.northwind4-Nov-06 5:13 
QuestionWorkflow in SPS 2007 Pin
Bharat Sukhwal3-Nov-06 19:40
Bharat Sukhwal3-Nov-06 19:40 
QuestionVery Urgent: How Can I make a compelete Instalation file Pin
alhassan013-Nov-06 18:54
alhassan013-Nov-06 18:54 
AnswerRe: Very Urgent: How Can I make a compelete Instalation file Pin
CooperWu3-Nov-06 22:32
CooperWu3-Nov-06 22:32 
AnswerRe: Very Urgent: How Can I make a compelete Instalation file Pin
realin4-Nov-06 4:52
realin4-Nov-06 4:52 
GeneralRe: Very Urgent: How Can I make a compelete Instalation file Pin
alhassan017-Nov-06 19:34
alhassan017-Nov-06 19:34 
QuestionAm I setting up my architecture correctly? Pin
xdavidx3-Nov-06 17:57
xdavidx3-Nov-06 17:57 
AnswerRe: Am I setting up my architecture correctly? Pin
CooperWu3-Nov-06 22:38
CooperWu3-Nov-06 22:38 
AnswerRe: Am I setting up my architecture correctly? Pin
beatles16924-Nov-06 1:01
beatles16924-Nov-06 1:01 
QuestionHow to retrieve the current row of a Data Set Pin
Guardian513-Nov-06 17:50
Guardian513-Nov-06 17:50 
AnswerRe: How to retrieve the current row of a Data Set Pin
beatles16924-Nov-06 1:24
beatles16924-Nov-06 1:24 
GeneralRe: How to retrieve the current row of a Data Set Pin
Guardian514-Nov-06 15:50
Guardian514-Nov-06 15:50 
GeneralRe: How to retrieve the current row of a Data Set Pin
beatles16925-Nov-06 0:04
beatles16925-Nov-06 0:04 
GeneralRe: How to retrieve the current row of a Data Set Pin
Guardian515-Nov-06 23:15
Guardian515-Nov-06 23:15 
QuestionVS2005 SP1 Beta release Pin
Glen Harvy3-Nov-06 16:47
Glen Harvy3-Nov-06 16:47 
AnswerRe: VS2005 SP1 Beta release Pin
André Ziegler4-Nov-06 12:08
André Ziegler4-Nov-06 12:08 
Questionquery about data grid view Pin
AmitDey3-Nov-06 16:21
AmitDey3-Nov-06 16:21 

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.