To a lot of you this may sound pretty familiar. A WindowsApplicationx, with a Form1 containing this kind of code private void button1_Click( object sender, EventArgs e) { label1.Text = MyFunction(textBox1.Text); } Later on in the process the essentials of the code are copied into the "real"...