ILayer.Visible seems to have no effect - How can I manually manage layer visibility and actually get the map control to update?
ILayer lyr = mapControl.get_Layer(i);
//this works for custom layers that I define but not for Bing_Maps.lyr or ESRI .lyr files that comes with ArcEngine or connections to ArcGIS Online. For composite layers, I also tried iterating through sub layers and setting the visibility to false
lyr.Visible = false;
mapControl.Update();
mapControl.Refresh();
mapControl.ActiveView.Refresh();
mapControl.Invalidate();