method MainForm.button1_Click(sender: System.Object; e: System.EventArgs); begin var myguid := System.Guid.NewGuid; label1.Text := myguid.ToString(); end;