VB6到VB.NET属性

编程入门 行业动态 更新时间:2024-10-27 04:24:06
本文介绍了VB6到VB.NET属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

VB.NET中的代码是什么? 以下VB6代码属性,

what will be the code in VB.NET for the below VB6 code property,

Public Property let WorkbookLocked(pLocked As Boolean) cboWorbookSelection.Locked = pLocked lWorkBookLocked = pLocked End Property Public Property Get WorkbookLocked() As Boolean WorkbookLocked = cboWorbookSelection.Locked End Property

推荐答案

这样的东西...... Something like this ... Private _WorkbookLocked As Boolean Public Property WorkbookLocked() As Boolean Get Return _WorkbookLocked End Get Set(ByVal value As Boolean) _WorkbookLocked = value End Set End Property

我没有输入您的所有代码已经 最简单的方法s(取决于您拥有的VS版本)是键入公共属性然后点击Tab键。将生成一个代码片段,其中包含您要填写的字段(名称,类型)

I haven''t put in all the code that you had Easiest way to do this (depending on which version of VS you have) is to type public property and then hit the tab key. A code snippet will be generated with fields for you to fill in (Name, Type)

更多推荐

VB6到VB.NET属性

本文发布于:2023-05-29 15:07:47,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/347280.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:属性   VB   NET

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!