StrataFrame Forum

Convert code .Net4.0 to code .Net 2.0

http://forum.strataframe.net/Topic33292.aspx

By Dong Trien Lam - 4/20/2016

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
//...