TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Joakim Astrom
NA
21
0
Accessing Form elements from separate class
Feb 3 2010 5:28 AM
Hello people.
I am wondering if it is possible to somehow access my richtextbox from a separate class I am using. The project is a Windows Forms Application.
namespace
WebCrawer1._1
{
class
SpecificDistributor
:
Distributor
{
public
SpecificDistributor() { }
public
override
void
start()
{
richTextBox1.appendText("from my separate class\n");
}
}
}
The SpecificDistributor class inherits the Distributor class. But how can I "link" the SpecificDistributor class to access the elements from my Form directly? In this case I just want to be able to logg information in the richTextBox of my Forms Application from my separate class.
Thanks.
Reply
Answers (
2
)
Lock a WebBrowser object until DocumentComplete
Transferring huge data stream from client to WCF service