this code puts the text in the foreground but when I have kept in the loop the previous draws are there they don't get erased.It does not appear that the object is moving but badly drawn.Any suggestion on how to erase previous draws and how to draw shapes?(Someone say something!)
But one question still remains how to erase the previous draws.What I observed is when a new window is dragged onto the drawn area it acts as a refreshing thing and it gets erased.Any function in GDI which can erase the previous draws?
For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls
If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then
For Each subCtrl As Control In ctrl.Controls
If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then
If subCtrl.GetType Is ...