Unfortunatelly you can't.. When you make something like this : Graphics g = Graphics.FromHdc(panel1.Handle); It throws an exception "ArgumentException - Value does not fall within the expected range". And that's all. I have the same problem like donkaiser. I'd like to draw something on a tabControl or a panel and I don't know how.
O
os00
@os00
Posts
-
equivalent of control.CreateGraphics() for CF -
Compact framework drawingI'd like to draw something on a TabPage on PDA (using compact framework). I know that it can't be done the same way like in normal framework because there's no CreateGraphics function within the TabPage class (there is.. but it's not implemented). Is there any other way how to obtain Graphics object than to call CreateGraphics function ? or is it possible to draw on TabPage in completely other way ?