Trying to learn MDI and clipboard

Mark4321

New member
Joined
Oct 22, 2007
Messages
2
Programming Experience
Beginner
Hi,

I am writing what amounts to a word processing application that allows users to make drawings and then include those drawings in the "word" document they create. It's an MDI application, and I have created a button on the MDI parent window to allow the person to open up the drawing screen. I can't access the drawings they make when they close out the drawing screen and return to the activechild. If I copy the drawings to the clipboard while on the drawing form, they are still on the clipboard when I exit, but isn't there a more elegant way? I want to learn how to access variables, etc. on the MDI parent from the child and vice-versa.

A second quick one: My code draws text from several rich textboxes and then dumps them all into one at the end. It is into this last one that I paste the pictures. HOWEVER, the pictures don't paste at the end! They paste in the middle of the document. How do I set the insertion point in a rich text box??

Thanks very much.

Mark
 
The clipboard belongs to the computer user, it is not a good idea to use as a transfer mechanism for data in your application.

What you can do is to read up about properties. You use properties and methods of classes all the time when you code, now is the time to write your first property yourself. If you don't know access levels you have read that too.
 
Back
Top