You're probably here cos you came from Here
The download is a Zip of a VS.NET solution containing
//inside InitializeComponent()
ControlLayerProvider layer = new ControlLayerProvider(this.components);
//by default layers provide three layer names "Beginner" "Advanced" "Expert"
//we can override them
layer.Layers.Clear();
layer.Layers.AddRange(new string[] {"Dumberer", "Dumber", "Dumb"});
Control c;
c = new Button();
c.Text = "I am a button";
layer.SetLayer(c, "Dumber");
this.Controls.Add(c);
c = new TextBox();
c.Text = "I am a TextBox";
layer.SetLayer(c, "Dumberer");
this.Controls.Add(c);
layer.SetLayer(c, null);
//both the same thing
layer.UnSetLayer(c);
layer.Layer = "Dumb";
//note this sets layer.LayerLevel to 2 because "Dumb" is at index 2 in layer.Layers
Or we can cycle through our layers
layer.LayerLevel = 0;
//or
layer.LayerLevel++;
//note layer.Layer maps to layer.Layers[layer.LayerLevel]
//note layer.LayerLevel cannot be set to outside the range 0 to layer.Layers.Count-1 (inclusive)
//the only exception is when layer.Layer.Count == 0 then it is always 0 and layer.Layers returns null
Download the code Here