Program.cs 448 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Reactive.Linq;
  3. using System.Windows.Forms;
  4. using System.Reactive.Disposables;
  5. namespace Excercise8
  6. {
  7. class Program
  8. {
  9. static void Main()
  10. {
  11. var txt = new TextBox();
  12. var lst = new ListBox { Top = txt.Height + 10 };
  13. var frm = new Form()
  14. {
  15. Controls = { txt, lst }
  16. };
  17. Application.Run(frm);
  18. }
  19. }
  20. }