请教AutoCAD .NET 开发人员手册中样例会出错?
请教版主:我是 .NET 开发的初学者,使用CAD2008+VB2008,从AutoCAD .NET 开发人员手册中复制了样例《调整应用程序窗口的位置和大小》。并按说明正确地引用了PresentationCore (PresentationCore.dll) library.
file:///c:/cadnet0.jpg
但出现多处引用System.Drawing、Application.MainWindow不正确和未定义类型point、size.见下图:
c:\cadnet1.jpg
请教是何问题??谢谢了!!
图再上传一次,另外,手册的相关链接也放上吧 手册的相关链接:http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%20.NET%20Developer's%20Guide/index.html
c:\cadnet2.jpg
手册的相关链接:
http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%20.NET%20Developer's%20Guide/index.html
c:\cadnet2.jpg
图呢?我这是看不见的
上传文件的链接点了么
另外手册的相关链接在手册的右边网页上点右键,然后看属性
对不起,我现场才有时间,手册的右边相关链接为:
http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%20.NET%20Developer's%20Guide/files/WS1a9193826455f5ff2566ffd511ff6f8c7ca-439f.htm
但很遗憾,为什么我上传图片总本地硬盘的链接?如file:///c:/cadnet2.jpg,所以在论坛无图片显示。
没什么问题的
using System;
using System.Linq;
using System.Text;
using System.Drawing;
using Autodesk.AutoCAD.Runtime;
using Autodesk.AutoCAD.ApplicationServices;
namespace TlsTest
{
class Class3
{
public static void PositionApplicationWindow()
{
// Set the position of the Application window
Point ptApp = new Point(0, 0);
Application.MainWindow.Location = ptApp;
// Set the size of the Application window
Size szApp = new Size(400, 400);
Application.MainWindow.Size = szApp;
}
}
}
但我用VB.net,首先出错了Imports System.Drawing此名提示“找不到命名空间”,请问:引用了PresentationCore (PresentationCore.dll) library外,还需引用什么?谢谢了!
页:
[1]