Solved

get string from other class

Posted on 2004-10-11
1
277 Views
Last Modified: 2010-04-17
I have situation like this: I have one form with textbox and I have another class ComPort with thread for reciving characters from modem. How could I write those characters to the form class (into textBox) ?
0
Comment
Question by:ssdjgru1
1 Comment
 

Accepted Solution

by:
huyntminh earned 125 total points
ID: 12284473
Hi,

You can write a public property {set} , eg : Text,  in the form where textbox is locating on.
Initialize a public static variable (in some public class, eg : Common) that reference to the form class.
Then, in the ComPort, when there is event that characters come from the modem, hope you have this type of event,  you just call the set property to update information to the textbox.


0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
This article will show, step by step, how to integrate R code into a R Sweave document
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question