Hi guys ..How solve This Lab Exercise?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kiwan
    New Member
    • Oct 2019
    • 1

    Hi guys ..How solve This Lab Exercise?

    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.
  • dev7060
    Recognized Expert Contributor
    • Mar 2017
    • 656

    #2
    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.

    Comment

    • SioSio
      Contributor
      • Dec 2019
      • 272

      #3
      The example below displays the text entered in textBox1 of MainForm in textBox1 of Form1.
      MainForm
      Code:
      		Form1 f1 = new Form1();
      		public MainForm()
      		{
      			InitializeComponent();
      		}
      		void Button1Click(object sender, EventArgs e)
      		{
      			f1.Show();
      		}
      		void TextBox1TextChanged(object sender, EventArgs e)
      		{
      			TextBox f1_Text1 = (TextBox)f1.Controls["textBox1"];
          		f1_Text1.Text = this.textBox1.Text;
      		}
      	}
      Form1
      Code:
      		public System.Windows.Forms.TextBox textBox1;
      Modify it for your environment

      Comment

      Working...