XL97: Device Context

Mike Miles
07-30-2001, 07:00 AM
I'm writing an application where I want someone to draw over, but not change, an Excel chart, in a VB form.

Rather than doing this using OLE (which is painful and complicated), I want to get a handle on the chart device context and return the blit to a PictureBox.

Is this possible? Can you get handles in VB/VBA?

Thinker
07-30-2001, 07:05 AM
You can use an API call to get a hWnd in Excel so there should be a way to do it for a DC. You could ask this in the API forum.

I think therefore I am... sometimes right. images/icons/wink.gif

Mike Miles
07-30-2001, 07:39 AM
Ta muchly. Will do.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum