In this small tutorial i will show you that how can we decide visibility of the layers depending on check boxes in MapInfo
code is very simple as shown bellow.
private void checkBox1_CheckedChanged (object sender, EventArgs e)
{
this.mapControl1.Map.Layers [checkBox1.Text.ToString ()]. Enabled = checkBox1.Checked;
}
code is very simple as shown bellow.
private void checkBox1_CheckedChanged (object sender, EventArgs e)
{
this.mapControl1.Map.Layers [checkBox1.Text.ToString ()]. Enabled = checkBox1.Checked;
}
0 comments:
Post a Comment