-
Custom property
this is the code for my property
Code:
Dim _playernumber As Integer
Property Player() As Integer
Get
_playernumber = _playernumber
End Get
Set(ByVal value As Integer)
_playernumber = value
End Set
End Property
The problem is that when i goto edit the player property at design time it always resets to 0. i know the problem has to do with the _playernumber = _playernumber part but i dont know what to change it to to fix it? any ides or suggestions?
-
Re: Custom property
It should be:
Code:
Get
Return _playernumber
End Get
-
Re: Custom property
-
1 Attachment(s)
Re: Custom property
For common things like inserting property definitions etc., visual studio provides predefined set of code snippets.
You can right click anywhere in the code editor, click "Insert Snippet" and select the snippet you want to enter.
Attachment 69613
Pradeep :)