edihall
路人甲
路人甲
  • 注册日期2004-11-19
  • 发帖数8
  • QQ
  • 铜币208枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:1343回复:2

求助:C#+LEGEND

楼主#
更多 发布于:2006-08-22 14:46
<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>
<P>错误提示是:erro'450',wrong number of arguments or invalid property assigment!希望多多指点!</P>
喜欢0 评分0
gisgeoboy
路人甲
路人甲
  • 注册日期2003-11-11
  • 发帖数73
  • QQ
  • 铜币377枚
  • 威望0点
  • 贡献值0点
  • 银元0个
1楼#
发布于:2006-08-22 16:16
<P>去官方网站下载一个改进的Legend,Mo21-Mo23自身带的这个Legend对.net支持的不是太好。</P>
<P>或者可以放弃使用这个控件,自己去写。</P>
举报 回复(0) 喜欢(0)     评分
edihall
路人甲
路人甲
  • 注册日期2004-11-19
  • 发帖数8
  • QQ
  • 铜币208枚
  • 威望0点
  • 贡献值0点
  • 银元0个
2楼#
发布于:2006-08-22 16:32
<P>谢谢,我下载了,但是试了很久还是不行的,能不能详细一点啊</P>
举报 回复(0) 喜欢(0)     评分
游客

返回顶部