How do I get a graphics^ object?

I am sorry to post again, but I cannot find out how to get a graphics^ object.
As I only know the old C++ I am completely lost.

Pls help me if you can.

[163 byte] By [Markus1982] at [2007-12-16]
# 1
Here is a very nice article regarding the new syntax:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs05/html/vs05cplus.asp

Also, for graphics object, I believe you can just create a new System::Windows::Forms::Control object say MyControl and then do something like:

Graphics ^ MyOject = MyControl.CreateGraphics();

Please see the help for System::Windows::Forms::Control if this still doesn't work.
Also, make sure NOT to do something like:

MyObject=System::Windows::Forms::Control::CreateGraphics since CreateGraphics is not a static method and hence the compiler will complain.
Thanks,
Ayman Shoukry
VC++

AymanShoukry at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ General...