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
Jan
NA
1
0
Change a value in a form from a different class
May 8 2006 5:16 AM
I have create a windows form frmAccount, in the form a have a richtextbox "rtxtLastScan" from the form I call (FileDirectory fd = new FileDirectory(); fd.timer(int.Parse(rtxtSeconds.Text), rtxtAccount.Text, strStartUpPath);) another class FileDirectory.cs. From this class i want to set rtxtLastScan´s value, I tried different ways but nothing seems to work. When i debugg i got down to ScanDirectory() and the code runs tro but the text in frmAccount rtxtLastScan doesn´t change. Could anyone help me? public class FileDirectory { string strStartUpPath = ""; Account myAcc = new Account(); frmAccount myFrmAccount; public void ScanDirectory() { myFrmAccount = new frmAccount(); myFrmAccount.rtxtLastScan.Text = "Hello"; } }
Reply
Answers (
1
)
How to open a browser using vb.net
ListView resizing, scrollbar