摘要: txtEmail.ImeMode = System.Windows.Forms.ImeMode.Disable;string email = txtEmail.Text.ToString().Trim();if (email != "") { Match m = Regex.Match(email, @"^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$"); if (!m.Success) ... 阅读全文
posted @ 2013-06-20 17:11 nygfcn 阅读(266) 评论(0) 推荐(0)
摘要: txtLocPort.KeyPress += Pub.KeyPress_NumInput; /// /// 数字输入 /// /// /// public static void KeyPress_NumInput(object sender, KeyPressEventArgs e) { if ((e.KeyChar '9') && e.KeyChar != 8) e.KeyChar = (char)0; } 阅读全文
posted @ 2013-06-20 17:08 nygfcn 阅读(198) 评论(0) 推荐(0)
摘要: 第一步:本地地图与鹰眼图载入同一地图mapControl.Map.Load(MapInfo.Mapping.MapLoader.CreateFromFile(mapFile.File)); mapControlOver.Map.Load(MapInfo.Mapping.MapLoader.CreateFromFile(mapFile.File));第二步:为mapControl.Map添加viewchang的事件this.mapControl.Map.ViewChangedEvent += new MapInfo.Mapping.ViewChangedEventH... 阅读全文
posted @ 2013-06-20 17:05 nygfcn 阅读(543) 评论(1) 推荐(1)
摘要: private void DelFenceInTable(Table table,String tableAlias,int id) { try { SearchInfo si = MapInfo.Data.SearchInfoFactory.SearchWhere(""); IResultSetFeatureCollection ifs; if (table != null) //Table exists close it ... 阅读全文
posted @ 2013-06-20 16:57 nygfcn 阅读(331) 评论(0) 推荐(0)
摘要: this.txtPss.ImeMode = System.Windows.Forms.ImeMode.Disable; 阅读全文
posted @ 2013-06-20 16:55 nygfcn 阅读(510) 评论(0) 推荐(0)