473,322 Members | 1,480 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Hi guys ..How solve This Lab Exercise?

1
1 - design a program with 2 forms, each form only contains of one multiline textbox

2- then when user type a text in textbox1/form1 at same time the same text should be writen in textbox1/from2.

thank you for your help.
Oct 15 '19 #1
2 2222
dev7060
633 Expert 512MB
You can update the post by mentioning the progress and things that you've done so far for this and where you stuck at. And there may be better chances of getting replies then.
Oct 16 '19 #2
SioSio
272 256MB
The example below displays the text entered in textBox1 of MainForm in textBox1 of Form1.
MainForm
Expand|Select|Wrap|Line Numbers
  1.         Form1 f1 = new Form1();
  2.         public MainForm()
  3.         {
  4.             InitializeComponent();
  5.         }
  6.         void Button1Click(object sender, EventArgs e)
  7.         {
  8.             f1.Show();
  9.         }
  10.         void TextBox1TextChanged(object sender, EventArgs e)
  11.         {
  12.             TextBox f1_Text1 = (TextBox)f1.Controls["textBox1"];
  13.             f1_Text1.Text = this.textBox1.Text;
  14.         }
  15.     }
  16.  
Form1
Expand|Select|Wrap|Line Numbers
  1.         public System.Windows.Forms.TextBox textBox1;
  2.  
Modify it for your environment
Dec 26 '19 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

20
by: titi | last post by:
Question The road and traffic authority for a small country currently uses a system to store information about all 'currently' licensed drivers. A licensed driver has the following info stored...
22
by: Suzie | last post by:
Hi guys, I've been coding in C for several years and I'm getting started with C++. I was given the following exercise to do and I don't quite understand it. I was wondering if any of you guys...
0
by: engsolnorm | last post by:
A co-worker and I want to increase our knowledge of Python. I have a tiny bit of exposure to python. He has none, but has wide experience with C, C++, NET, C#, etc. We agreed we'd do a Sudoku...
10
by: Eric | last post by:
Hello, I have been working through the K&R book (only chapter one so far) examples and exercises. After much sweat and hair pulling, I think I have a solution for ex 1-18 on page 31. It...
5
by: arnuld | last post by:
this is a programme that counts the "lengths" of each word and then prints that many of stars(*) on the output . it is a modified form of K&R2 exercise 1-13. the programme runs without any...
16
by: arnuld | last post by:
i am not able to make it work. it compiles without any error but does not work: what i WANTED: 1.) 1st we will take the input in to an array. (calling "getline" in "main") 2.) we will print...
3
by: southside1415 | last post by:
hey guys, noob here. Im just wondering if anyone can help me with the code for this exercise. the exercise says modify the header file list.h in section 12.9 by replacing the typedef line with ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.