Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have several sprite exposed errors. How do I correct the following errors:

Sprite cannot expose Sprite outside the project through class Board

' Alternative method
Public Sub AddPiece(ByVal Sprite As Sprite)

' Add this piece using the below methid
AddPiece(Sprite, New Padding(0))

End Sub

Sprite cannot expose Sprite outside the project through class Board

' Use this method to add a new piece type to the board
Public Sub AddPiece(ByVal Sprite As Sprite, ByVal Margin As System.Windows.Forms.Padding)

' Create a new piece
Dim newPiece As New Piece

' Set its properties
With newPiece
.Index = Pieces.Count + 1
.Sprite = Sprite
End With

' Add a new piece to the collection
Pieces.Add(newPiece)

End Sub

Sprite cannot expose Sprite outside the project through class Piece

Public Class Piece
Public Sprite As Sprite
Public Index As Int32
Public Tag As String
End Class
Posted

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