0

right, silly question, but how do I access "e.Graphics" outside the scope of this function?

 private void HopfieldRecForm_Paint(object sender, PaintEventArgs e)
        {
            Graphics g = e.Graphics;
...
...

}

Edited by mike_2000_17: Fixed formatting

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by Diamonddrake
0

A graphics object is sealed. It cannot simply be instantiated. you can create one from an image to use to draw to the image, but as far as painting to a form or control, you are pretty much stuck using Paint events. But that's the extent of their usefulness anyway.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.