| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1606 人关注过本帖
标题:请指教treeView1.Invoke
只看楼主 加入收藏
xwheat
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2006-11-12
收藏
 问题点数:0 回复次数:1 
请指教treeView1.Invoke
   
System.NullReferenceException: 未将对象引用设置到对象的实例。

private void PapulateTree(
      Dictionary<string, ChamferChecker.Profile> profiles)
    {
      if (this.treeView1.InvokeRequired)
      {
        this.treeView1.Invoke(new Action(delegate
        {
            this.PapulateTree(profiles);
        }));
        return;
搜索更多相关主题的帖子: this delegate 对象 Invoke new 
2019-09-02 00:52
xwheat
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2006-11-12
收藏
得分:0 
回复 楼主 xwheat
解决了
private void PapulateTree(
      Dictionary<string, ChamferChecker.Profile> profiles)
    {
      if (this.treeView1.InvokeRequired)
      {
        this.treeView1.Invoke(new Action(delegate
        {
            new mainform().PapulateTree(profiles);
        }));
        return;
收到的鲜花
  • 静夜思2019-09-03 23:44 送鲜花  1朵  
2019-09-03 23:32
快速回复:请指教treeView1.Invoke
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017203 second(s), 10 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved