获得textbox的输入后的內容

lxfei73 2009-03-24 05:18:22
StreamReader streamReader = new StreamReader(@"E:\wwwroot1\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\config.txt");
char str = '\\';
string directoryName = this.textBoxInput.Text;
direc = '@' + directoryName;
// directoryName = Path.GetFullPath(foldPathname1);
DateTime dt = Directory.GetLastWriteTime(direc);
Boolean result1 = false; Boolean result2 =false;
这里 string directoryName = this.textBoxInput.Text; 出现异常,未将对象引用设置到对象的实例,这是什么原因阿,劳驾,谢谢
...全文
65 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
lxfei73 2009-03-24
  • 打赏
  • 举报
回复
谢谢了
crystalsky21504119 2009-03-24
  • 打赏
  • 举报
回复
在界面上把原来那个删了重新加一个进去起个名字
lxfei73 2009-03-24
  • 打赏
  • 举报
回复
什么意思,不懂啊
A海阔天空 2009-03-24
  • 打赏
  • 举报
回复

把 textBoxInput 删除了,重新加一个

110,533

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧