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
aa
NA
10
0
I need help sending data back and form in Windows Forms
Sep 12 2008 6:06 PM
Hi
I am trying to pass data back and forth windows forms but I am having trouble. What I am trying to do is this:
I have a mainForm that has 2 textboxes called plainText and ChiperText. This main form also has a menu bar of different algo to choose from(for instance shift Chiper).
When shift chiper is clicke id launched a new form(shiftchiper.cs). It has some options and it also have a toolbar with Encrypt and decrypt.
When encrypt is hit I want to take the data from mainForm PlainText textbox and encrypt it. Once encrypted send it back to the mainForms chiperText box.
If they hit decrypt it's the same thing just reversed.
By using this tutorial( I used the property way)
http://www.codeproject.com/KB/cs/pass_data_between_forms.aspx
I been able to send the PlainText data to the shiftChiper form and encrypt it. What I can't do is send the new encrypted data back to the ChiperText textbox in the mainForm.
So anyone know how to do this?
I simple example would be nice. It can be just 2 textboxes on one form and a button. when the button is clicked a form2 is made and it sends over one of the textboxes. One form2 it can have a button when clicked it sends the data that was sent back to form1.
I am doing it in C# by the way.
Reply
Answers (
1
)
How do i add a background worker?
c# copy folders smal help