本文主要介绍如何将矢量图控件VectorDraw Developers Framework (VDF)的vdFramedControl添加至VS2005,并展示一些vdFramedControl的基本功能。
具体步骤如下:
1)打开Visual C#2005 IDE,并选择创建一个新的Windows项目“Windows Application”
2)右键单击工具箱,在菜单栏中选择“"Choose Items...”。
3)可以根据以下2种方式添加vdFramedControl:
A:在 "Choose Toolbox Items" 窗口中拉动滚动条至“vdFramedControl”
B1:在"Choose Toolbox Items" 窗口中,点击 "Browse..."按钮。
B2:在VectorDraw Developer Framework的安装目录下找到vdFramedControl.dll,单击并打开vdFramedControl.dll。
4)在"Choose Toolbox Items"窗口中,如图所示,选择vdFramedControl。
5)在工具箱中可找到vdFramedControl组件。
6)将vdFramedControl组件添加至form窗体中,下方出现4个按钮,可分别执行“打开”“保存”“新建”“缩放”功能。
7)选择VDF引用,将Copy Local设置为“False”,Specific Version 设置为“False”
8)按钮点击代码如下: