SHARE
TWEET

Untitled

a guest Aug 14th, 2019 42 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top