Click here to Skip to main content
16,005,281 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to GetType() a Nullable? Pin
Program.X17-Oct-06 6:33
Program.X17-Oct-06 6:33 
GeneralRe: How to GetType() a Nullable? Pin
Judah Gabriel Himango17-Oct-06 6:42
sponsorJudah Gabriel Himango17-Oct-06 6:42 
QuestionResolution independent application Pin
Robi-Robo17-Oct-06 3:56
Robi-Robo17-Oct-06 3:56 
AnswerRe: Resolution independent application Pin
Stefan Troschuetz17-Oct-06 4:34
Stefan Troschuetz17-Oct-06 4:34 
AnswerRe: Resolution independent application Pin
Wjousts17-Oct-06 4:35
Wjousts17-Oct-06 4:35 
Questiontab page disable question Pin
rzvme17-Oct-06 3:51
rzvme17-Oct-06 3:51 
AnswerRe: tab page disable question Pin
Thomas Chester17-Oct-06 7:03
Thomas Chester17-Oct-06 7:03 
QuestionMDI child problem... Pin
IamHuM17-Oct-06 3:45
IamHuM17-Oct-06 3:45 
Hi...

I am developing a MDI application. In that application i am creating forms dynamically, 1 per PC comport.

In each comport i am adding textbox.& i want my application should display the received data on my each comport. I have added SerialPoer.DataReceived event in my application.

But i am not able to display the received data on that dynamically created forms...

I am adding some code with this...please suggest me where i am doing mistake...



****************************************************************************************************

private SerialPort comport = new SerialPort();

TextBox tb = new TextBox();



foreach (string s in SerialPort.GetPortNames())

{

this.f1 = new VHLCOutputWindow_Form();

f1.MdiParent = this;

f1.Controls.Add(tb);

}

MY DataReceived Event-:

comport.DataReceived += new SerialDataReceivedEventHandler(port_DataReceived);

private void port_DataReceived(object sender, SerialDataReceivedEventArgs e)

{

string ReceivedData = comport.ReadExisting();

f1.Controls[0].Text = ReceivedData; //i've only 1 control added on that form(i.e. TextBox tb)

}

****************************************************************************************************



right now my PC is having only 1 port...& my form is getting created but i am not able to see the data received in that form...



Regards,

Vinay

AnswerRe: MDI child problem... Pin
Stefan Troschuetz17-Oct-06 4:18
Stefan Troschuetz17-Oct-06 4:18 
QuestionDataGridViewComboBoxColumn - Setting SelectedIndex Pin
KCI-VA17-Oct-06 3:31
KCI-VA17-Oct-06 3:31 
QuestionProblems with primary key Pin
mrclash88817-Oct-06 3:21
mrclash88817-Oct-06 3:21 
AnswerRe: Problems with primary key Pin
bearfx17-Oct-06 4:19
bearfx17-Oct-06 4:19 
AnswerRe: Problems with primary key Pin
Jim Conigliaro17-Oct-06 4:23
Jim Conigliaro17-Oct-06 4:23 
GeneralRe: Problems with primary key Pin
mrclash88817-Oct-06 4:43
mrclash88817-Oct-06 4:43 
QuestionTerminating multithreaded application Pin
Pseudonaja Cyanide17-Oct-06 3:16
Pseudonaja Cyanide17-Oct-06 3:16 
AnswerRe: Terminating multithreaded application Pin
Stefan Troschuetz17-Oct-06 4:32
Stefan Troschuetz17-Oct-06 4:32 
GeneralRe: Terminating multithreaded application Pin
Pseudonaja Cyanide17-Oct-06 4:48
Pseudonaja Cyanide17-Oct-06 4:48 
GeneralRe: Terminating multithreaded application Pin
Pseudonaja Cyanide20-Oct-06 2:47
Pseudonaja Cyanide20-Oct-06 2:47 
QuestionPolicy Manager Pin
Super Lloyd17-Oct-06 2:44
Super Lloyd17-Oct-06 2:44 
AnswerRe: Policy Manager Pin
bearfx17-Oct-06 4:23
bearfx17-Oct-06 4:23 
GeneralRe: Policy Manager Pin
Super Lloyd17-Oct-06 12:52
Super Lloyd17-Oct-06 12:52 
Questionresizable movable borderless form? Pin
dolce_ckj17-Oct-06 2:36
dolce_ckj17-Oct-06 2:36 
AnswerRe: resizable movable borderless form? Pin
Martin#17-Oct-06 2:56
Martin#17-Oct-06 2:56 
AnswerRe: resizable movable borderless form? Pin
dolce_ckj17-Oct-06 22:18
dolce_ckj17-Oct-06 22:18 
QuestionHow to close a messagebox Pin
engsrini17-Oct-06 2:34
engsrini17-Oct-06 2:34 

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.