Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Label1.Text = "I'm a label".
- static class Program
- {
- static void Main(String[] args)
- {
- FormUpdate frmUpdate = new FormUpdate();
- Application.EnableVisualStyles();
- Application.SetCompatibleTextRenderingDefault(false);
- Application.Run(frmUpdate);
- // Why isn't this a suitable way of getting the label?
- frmUpdate.label1.Text = "I cause an error!";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement