1.this的一个常用功能是:

相当于FormMain f=new FormMain()中f这个对象,

如果窗体存在一个控件dimgismap,定义控件对象 public dmgismap dmGisMapShow=null;

如果控件在当前窗口,则可以直接通过this.dmGisMapShow......调用。

如果控件在其他窗口,则在其他窗口定义public static FormMain MyForm = null;则在当前窗体程序中通过FormMain.MyForm.dmGisMapShow...........调用。

posted on 2016-06-17 11:03  爽朗的刘备  阅读(216)  评论(0编辑  收藏  举报