Putting text on an image on a form  
Author Message
OldCDude





PostPosted: Windows Forms General, Putting text on an image on a form Top

I am an old C/C++ programmer that is trying to learn C# and .net. I need to take text from a .txt file and display it on a form in graphics. I eventually need to save the image to a .jpg file.

I created a picturebox (is this the right object to use ) on the main form, opened the .txt file and read in one line at a time. Now I need to put each line of the text into the picturebox area in graphics mode to display it on the screen in the same order as the text in the file.

Any suggestions

Thank you

OldCDude



Windows Forms29  
 
 
ahmedilyas





PostPosted: Windows Forms General, Putting text on an image on a form Top

you would have to use the Graphics class to draw a string. Maybe implement the paint event (im not a graphics guru so I am just hoping to guide you). There has been a topic or 2 on how to do this....

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=592374&SiteID=1



 
 
OldCDude





PostPosted: Windows Forms General, Putting text on an image on a form Top

Thank you, ahmedilyas. The link showed me what I needed to know.

OldCDude - or should I say NewC#Dude