Hello,

New to posting on these forums, so hopefully I will explain clearly what im trying to accomplish (if this is in the wrong forum please move... my apologies). Ive been programming in C++/VB for a few years now and have been asked to write a program that will draw lines based upon points given in a text file. Not so hard right? Along these lines, I need 'crosstracks' at certain points. Since im familiar with C++ (and using it in school), I decided I wanted to use Visual Studio 2005 to make this program (in VC++ of course).

I have never worked with GDI before, but apparantly its not hard to do with 2D objects. I have wrote some basic code using GDI+ to create this basic framework (lines, shapes, etc). I do have a few questions though:

1. Is it possible (using windows forms c++) to make a small "picturebox" type of control and draw whatever you want separate from the rest of the controls on the form? I know in Visual Basic you could add a picturebox control, which was very useful. What im trying to do is create a form with buttons and textboxes that will alter the image based on the input. Think of it as a form with a place to output the result, and a few textboxes to add points and plot the lines.

2. I didnt notice any built in functions or documentation on how to add textboxes at the end of a random line that you draw.

Ive been doing research for about a week and a half now, and surprisingly i havent found any really good examples of using gdi+ in a managed c++ format. Ive had a mental block for a few days now and no amount of research seems to help. This is where you come in

So please, if you have any code samples or even basic suggestions to go off of, it would be much appreciated.

Thank you!