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

C#

 
Questionplotting graph Pin
s4_sabahatf3-Nov-06 23:31
s4_sabahatf3-Nov-06 23:31 
AnswerRe: plotting graph Pin
User 66584-Nov-06 4:27
User 66584-Nov-06 4:27 
QuestionMail Application development in .Net Pin
clife5373-Nov-06 22:56
clife5373-Nov-06 22:56 
AnswerRe: Mail Application development in .Net Pin
quiteSmart3-Nov-06 23:13
quiteSmart3-Nov-06 23:13 
GeneralRe: Mail Application development in .Net Pin
clife5374-Nov-06 4:35
clife5374-Nov-06 4:35 
AnswerRe: Mail Application development in .Net Pin
realin4-Nov-06 4:47
realin4-Nov-06 4:47 
GeneralRe: Mail Application development in .Net Pin
clife5374-Nov-06 20:55
clife5374-Nov-06 20:55 
QuestionRich text box error... Pin
IamHuM3-Nov-06 21:15
IamHuM3-Nov-06 21:15 
Hi…

In my application…I am trying to add data received on comport in a rich text box. Rich text box is on second form & my SerialPort.datareceived event is on first form. Here is my sample code…


form2 f2 = new form2();

Serialport.DataReceived += new SerialDataReceivedEventHandler(port_DataReceived);

private void port_DataReceived(object sender, SerialDataReceivedEventArgs e)
{

ReceivedData = comport.ReadExisting();

f2.Controls[0].Invoke(new EventHandler(delegate{f2.Controls[0].AppendTextReceivedData);}));

}


But I am getting error on the staement-
f2.Controls[0].AppendText(ReceivedData);

Error is - ('System.Windows.Forms.Control' does not contain a definition for 'AppendText')

I have only one rich textbox control on form2…

What is the problem…why I am unable to access "Appendext" method for the rich text box on ‘form2’ from 'form1'


Thanks,

Vinay

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 
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 

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.