I have the following code C# 2008 want to switch to the C#2005 Net2.0 after his move has been an error, thanks to the help available tracks.
//C# 2008
namespace Vidu1
{
public partial class Form1 : Form
{
Control draggingControl = new Control{ BackColor = Color.Green, Visible = false }; // warning error here
public Form1()
{
InitializeComponent();
// ...
}
// ...
}
}
//C# 2005
//...
Control draggingControl = new Control();
draggingControl.BackColor = Color.Green; // warning error here
draggingControl.Visible = false; // warning error here