今天先写点最基本的,就是如何添加控件,在VS工具箱里选择项添加找到对应的安装目录,Program Files (x86)/Program Files里的Cognex 文件下 ReferencedAssemblies里面的dll 添加进去,有的可能会报错,那是因为本身不是控件,添加完成后就可以使用了