首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >获取用户创建的方法以在属性对话框中显示时出现问题

获取用户创建的方法以在属性对话框中显示时出现问题
EN

Stack Overflow用户
提问于 2011-12-14 03:45:00
回答 1查看 23关注 0票数 0

在属性对话框中显示用户创建的方法时出现问题,所以我创建了最基本的textbox并将其添加到winform中。我可以看到_key和_value,但该方法没有显示:(

代码语言:javascript
运行
复制
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace testTextbox
{
    public class myTextbox : TextBox
    {
        public string _key { get; set; }
        public string _value { get; set; }
        public void aa()
        {
// aa does not appear in the properties dialogue when the text box is on the form
        }
    }
}

我哪里错了?谢谢。

EN

Stack Overflow用户

回答已采纳

发布于 2011-12-14 03:50:09

方法不会显示在属性网格中,只显示属性和事件。

票数 3
EN
查看全部 1 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/8495174

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档