Graphics and Step keyword

Mar 15 2005 10:22 AM
Hi, I am migrating a VB 6.0 app to VB.NET and am stumped about the migration of the Step keyword that the vb 6.0 Line function uses. eg //----------------------------------------------------------------- Pic.Line (X - 2, Y - 2)-Step(m_Width + 4, m_Height + 4) //----------------------------------------------------------------- The upgrade wizard converted the above line to //--------------------------------------------------------------- Pic.Line (X - 2, Y - 2)- (m_Width + 4, m_Height + 4) //--------------------------------------------------------------- Is this correct or has the upgrade wizard simply missed the "Step" keyword? I have tried googling about the equivalent of the Step keyword/relative co-ordinates in VB.NET, but have not found anything yet. I found a function that gets the current mouse position //----------------------------------------------------------------------- LocalMousePosition = myControl.PointToClient(Cursor.Position). //----------------------------------------------------------------------- However I am not sure if this is the right replacement for the Step keyword. Any help would be appreciated. Thank you. Sarika