Neal Hartman
asked on
Save Textbox to image
How can I save the contents of a textbox to and image (jpg).
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
To save as a JPG (which PaulHews has already shown):
Dim bmp As New Bitmap(TextBox1.Width, TextBox1.Height)
TextBox1.DrawToBitmap(bmp, New Rectangle(New Point(0, 0), TextBox1.Size))
bmp.Save("c:\someFile.jpg", System.Drawing.Imaging.ImageFormat.Jpeg)
ASKER
Excellent!
So I take it you have VB.Net 2003 or below?...
In VB.Net 2005 (or above) it is built-in:
Open in new window