阅读:1598回复:1
求助:C#+LEGEND
<TABLE height="85%" width="95%" align=center border=0>
<TR> <TD vAlign=top width=* height="100%"><IMG src="http://www.gisempire.com/bbs/Skins/Default/topicface/face1.gif" align=absMiddle border=0> <BR> <P><STRONG>求助:图层控制(legend)<BR></STRONG></P> <P>private void Form1_Load(object sender, System.EventArgs e)</P> <P>{</P> <P>object refMap = (object) this.axMap1;<BR> bool refTrue = true;<BR> short refShort = 0;<BR> axlegend1.setMapSource(ref refMap);<BR> axlegend1.ShowAllLegend();<BR> axlegend1.LoadLegend(ref refTrue);<BR> axlegend1.set_Active(ref refShort, true);<BR> axMap1.Refresh();<BR> axlegend1.Refresh();</P> <P>}</P> <P>private void axlegend1_AfterSetLayerVisible(object sender, AxMO21legend.__legend_AfterSetLayerVisibleEvent e)<BR> {<BR> axMap1.Refresh();<BR> axlegend1.Refresh();</P> <P> }</P></TD></TR></TABLE> <P>错误提示:运行时错误'450'</P> <P>错误的参数或无效属性分配</P> <P>在线等!!!!</P> |
|
1楼#
发布于:2007-11-17 13:18
一样 楼主解决了的话告诉偶一下 谢
|
|