乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 34|回复: 0

关于CAD对话框

[复制链接]

14

主题

64

帖子

4

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
120
发表于 2014-11-10 09:52:00 | 显示全部楼层 |阅读模式
我用VS2010做了一个对话框,保存为EXE格式。然后新建一个类库文件,引用添加对话框文件,并添加相应的命名空间。然后新建对话框类对象,用以下代码时,出现问题:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using 电码化;
using Autodesk..Runtime;
using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.EditorInput;
using Autodesk.AutoCAD.Geometry;
using Autodesk.AutoCAD.Windows;
using Autodesk.AutoCAD.DatabaseServices;
namespace NetSelection
{
    public class from
    {
        [CommandMethod("dmhd")]
        public void dmhd()
        {
            FormDMH forms = new FormDMH();
            Application.ShowAlertDialog("aaa");
            Application.ShowModalDialog(forms);
        }
    }
}
以上代码中, 最后一句Application.ShowModalDialog(forms);提示如下:
错误        1        与“Autodesk.AutoCAD.ApplicationServices.Application.ShowModalDialog(System.Windows.Forms.Form)”最匹配的重载方法具有一些无效参数        D:\00 C#代码-我的\信号辅助设计\NetSelection\NetSelection\from.cs        23        13        NetSelection
错误        2        参数 1: 无法从“电码化工具.FormDMH”转换为“System.Windows.Forms.Form”        D:\00 C#代码-我的\信号辅助设计\NetSelection\NetSelection\from.cs        23        41        NetSelection
请高手指点。
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-6-28 22:48 , Processed in 0.304712 second(s), 55 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表