得到windows mobile 应用程序的路径
摘要:path=System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);xmlFile.Load(path+@"\trial.xml");源文件:http://bytes.com/topic/mobile-development/answers/873874-how-can-i-get-xml-file-windows-mobile-6-o-using-c
阅读全文
windows moible DataGrid的滚动条单击事件
摘要:DataGrid.controls[0]对应的是水平滚动条DataGrid.controls[1]对应的是垂直滚动条DataGrid.controls[2]对应的是显示单元格((HScrollBar))dgGrid.Controls[0].ValueChanged+=newEventHandle(scroollChangedFunctionName);//水平滚动条事件来源:http://www.cnblogs.com/lanru/archive/2010/8/20.html
阅读全文
windows mobile datagrid 样式
摘要:dgContact.PreferredRowHeight = 30; //Datagrid 行的高度for(int i = 0 ; i < this.dataGrid1.VisibleRowCount - 1 ; i ++) { //填充cell的边界色 e.Graphics.DrawRectangle(new Pen(Color.Red),dataGrid1.GetCellBounds(i,2)); //填充cell格的颜色 e.Graphics.FillRectangle(Brushes.Beige,dataGrid1.GetCellBou...
阅读全文
json 字符串反序列化成DataSet
摘要:在CSDN上下载的代码,放到文章里,是为了保存以后用,希望不会侵权哦using System;using System.Collections.Generic;using System.Data;using System.Text;using System.Text.RegularExpressions;/// <summary>///Deserializejson 的摘要说明/// </summary>public class Deserializejson{ protected DataSet ds = new DataSet();public Deserializ
阅读全文
DataSet 转换到JSON
摘要:在CSDN上下载的代码,放到文章里,是为了保存以后用,希望不会侵权哦using System;using System.Collections.Generic;using System.Text;using System.Data;using System.Web;using System.Collections;/// <summary>///tojson 的摘要说明/// </summary>public class Converter{ private static void WriteDataRow(StringBuilder sb, DataRow row)
阅读全文
“xxxx”的重载均与委托“System.Threading.WaitCallback”不匹配
摘要:在使用ThreadPool中,遇到了“xxxx”的重载均与委托“System.Threading.WaitCallback”不匹配.在网上找一下原因1、请参见 WaitCallback 委托的声明:public delegate void WaitCallback(object state);由此可见,需要一个无返回值的,并且有一个object型参数的方法才可以匹配。就是这个原因导致的。参考地址:http://zhidao.baidu.com/question/32362474
阅读全文
windows mobile 日期问题
摘要:windows mobile 在调用 webservice时返回的日期参数,在mobile 程序转换出来,有错误。这个问题一直很纠结。最后,在分别对webservice和mobile 程序的日期进行调试,终于找到了问题的原因。分别执行以下语句:TimeZone tz=TimeZone.CurrentTimeZone;tz.DaylightName;根据执行的结果。就知道不同了webservice的执行结果显示的是:DaylightName: "中国标准时间"mobile 的结果显示为:"Pacific Standard Time " ;根据以下的页面:h
阅读全文
windows mobile 程序控件置顶
摘要:在mobile程序中由于屏幕太小,但有时需要控件较多。所以就有控件重复位置重叠的时候。就需要代码控制它,什么时候,什么控件置顶。今天遇到这个问题。把解决方案写下来,希望能够帮助到你。Control.BringToFront(); //置于顶层Control.SendToBack(); //置于底层已经在程序上跑过。能够达到效果
阅读全文