in C++ we have CClientDC,OnPrepareDC and DPtoLP,MoveTo funtion in C# or nt.thank you for helping me to answer the question