I want to capture the text in a textbox to a picturebox and I am trying to use bitbit function.
But everytime i use it, the image is not captured of the textbox but of some other area.
Can you explain me how can I use this function correctly?

pic.Visible = True
 pic.Height = Text1.Height
 pic.Width = Text1.Width
  

nRet = BitBlt(pic.hDC, 0, 0, Text1.Width - 2, Text1.Height - 2, Me.hDC, Text1.Left + 1, Text1.Top + 1, _ SRCCOPY)

pic.Picture = pic.Image
  
  
SavePicture pic.Image, "text.bmp"
  
pic.Visible = True