| Microsoft DirectX 8.1 (Visual Basic) | 
Sets a single device transformation-related state.
object.SetTransform( _ 
    TransformType As CONST_D3DTRANSFORMSTATETYPE, _ 
    Matrix As D3DMATRIX)
If the method fails, an error is raised and Err.Number can be set to D3DERR_INVALIDCALL if one of the parameters is invalid.
For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.
Direct3DDevice8.GetTransform, Direct3DDevice8.SetRenderState