combox控件问题 功能代码写后,控件不显示内容,产生这个问题 都有什么原因呢? 本人菜鸟,请大侠们指点一二。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 if (projectForm != null) { string projectPath = projectForm.ProjectPath + "\\基本参数"; string[] tempFiles = Directory.GetFiles(projectPath); if (tempFiles != null) { for (int i = 0; i < tempFiles.Length; i++) { string tempfilename = tempFiles[i]; tempfilename = tempfilename.Substring(tempfilename.LastIndexOf("\\") + 1); tempfilename = tempfilename.Substring(0, tempfilename.Length - 4); BaseParascomboBoxEx1.Items.Add(tempfilename); } } 加断点 看看tempfilename Substring 之后是什么 为什么现在结贴率都这么低呢http://topic.csdn.net/u/20100903/17/dfafa096-7529-4c66-b39f-25320fb3580a.html如果是add应该是没问题的如果是datatable,那绑定以后不要释放掉 UTF8格式字符串如何转变成对应的汉字? 屏蔽win atl+f4 ctrl+atl+del atl+tab 一个很有意思的问题-->分布式 学习C Sharp 哪里有下关于数据库方法的代码? 在dll中如何获取当前dll的所在文件夹? webgis 自己动手开发C#做的邮件服务器,找资料! 各位大哥,请帮忙提供一些XMLHttp的学习资料 急!!!有关摄像头编程!!! 请问如何在richTextBox中实作 drag and drop 的功能呢 C# 如何实现鼠标移到图标上面 图标变大的效果?? 调查一下大家用的操作系统
{
string projectPath = projectForm.ProjectPath + "\\基本参数";
string[] tempFiles = Directory.GetFiles(projectPath);
if (tempFiles != null)
{
for (int i = 0; i < tempFiles.Length; i++)
{
string tempfilename = tempFiles[i];
tempfilename = tempfilename.Substring(tempfilename.LastIndexOf("\\") + 1);
tempfilename = tempfilename.Substring(0, tempfilename.Length - 4);
BaseParascomboBoxEx1.Items.Add(tempfilename);
}
}
http://topic.csdn.net/u/20100903/17/dfafa096-7529-4c66-b39f-25320fb3580a.html
如果是add应该是没问题的
如果是datatable,那绑定以后不要释放掉