F
fripper
I have a VB 2005 app ... main window has a picture box control (picControl)
.... I want to draw a rectangle in that control using GDI+ ... something
like:
Dim g as graphics = creategraphics|()
Dim r as Rectangle
Dim b as new system.drawing.solidbrush(system.drawing.color.red)
r.x = 100
r.y = 100
r.width = 400
r.height = 50
g.fillrectangle(b,r)
How do I get the rectangle to appear in picControl and not the basic form
itself? Somehow I would like to tell the creategraphics function that I
want to put the graphics in picControl. Can I do that?
Thanks for any help.
.... I want to draw a rectangle in that control using GDI+ ... something
like:
Dim g as graphics = creategraphics|()
Dim r as Rectangle
Dim b as new system.drawing.solidbrush(system.drawing.color.red)
r.x = 100
r.y = 100
r.width = 400
r.height = 50
g.fillrectangle(b,r)
How do I get the rectangle to appear in picControl and not the basic form
itself? Somehow I would like to tell the creategraphics function that I
want to put the graphics in picControl. Can I do that?
Thanks for any help.