如何在VB.NET中向自定义对象添加自定义属性? [英] How do I add custom properties to a custom object in VB.NET?

查看:578
本文介绍了如何在VB.NET中向自定义对象添加自定义属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在开发Visual Studio中的自定义主题对象。我希望能够添加自定义属性,例如是否显示帮助按钮。我是视觉基础的新手。该对象背后的想法是,我可以将对象添加到表单,更改需要更改的属性,而不是在每个表单上重新创建主题。



我尝试了什么:



到目前为止,我刚刚在网上搜索过。

Hello, I am am working on creating a custom theme object in visual studio. I want to be able to also add custom properties, such as displaying the help button or not. I am new to visual basic. The idea behind the object is that I can just add the object to a form, change the properties that need to change, and not to recreate the theme on each form.

What I have tried:

So far, I have just searched around the internet.

推荐答案

从这里开始: Visual Basic中的对象和类| Microsoft Docs [ ^ ],然后按照目标网站左侧的链接进行操作。
Start here: Objects and classes in Visual Basic | Microsoft Docs[^], then follow the links on the left side on destination site.


这篇关于如何在VB.NET中向自定义对象添加自定义属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆