This project is read-only.

Changing opacity before layer load

Jan 27, 2012 at 1:48 AM

I have the following code block:

        private void tsbAddLayer_Click(object sender, EventArgs e)
        {
            OpenFileDialog fileDialog = new OpenFileDialog();
            fileDialog.Filter = "Shapefiles|*.shp";
            if (fileDialog.ShowDialog() == DialogResult.OK)
            {
                IFeatureSet featureSet1 = new Shapefile();
                featureSet1 = Shapefile.Open(fileDialog.FileName);
                mapMain.Layers.Add(featureSet1);
            }
        }

How do I change the opacity for this layer to .15 before it shows on the map?