Click here to Skip to main content
15,039,525 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
what will be the code in VB.NET
for the below VB6 code property,

VB
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
Posted
Updated 29-Jan-13 23:17pm
v2

1 solution

Something like this ...
VB
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

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)
   
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900