fork download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9.  
  10. namespace WindowsFormsApplication1
  11. {
  12. public partial class Form1 : Form
  13. {
  14. string str = "Form1からラベルを書き換えました";
  15.  
  16. public Form1()
  17. {
  18. InitializeComponent();
  19. }
  20.  
  21. public string TextBoxText
  22. {
  23. get
  24. {
  25. return str;
  26. }
  27. set
  28. {
  29. str = value;
  30. }
  31. }
  32.  
  33. private void Form1_Load(object sender, EventArgs e)
  34. {
  35. Form2 f = new Form2();
  36. Form2.Form2Instance = f;
  37. f.Show();
  38. Form2.Form2Instance.TextBoxText = this.str;
  39.  
  40. }
  41. }
  42. }
  43.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty