Advertisement
Guest User

Untitled

a guest
Aug 14th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. Label1.Text = "I'm a label".
  2.  
  3. static class Program
  4. {
  5. static void Main(String[] args)
  6. {
  7. FormUpdate frmUpdate = new FormUpdate();
  8.  
  9. Application.EnableVisualStyles();
  10. Application.SetCompatibleTextRenderingDefault(false);
  11. Application.Run(frmUpdate);
  12.  
  13. // Why isn't this a suitable way of getting the label?
  14. frmUpdate.label1.Text = "I cause an error!";
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement