[Help]GDI+

Posts 16–25 of 25 · Page 2 of 2
Quote Originally Posted by Invidus View Post
Hm.
Elaborate please?
Every control has a paint event (which pretty much is draw.. not painting..) if you want to draw something in a picture box, get the event of it... Same applies to the whole forms and all controls.

edit: ups jason was faster

edit2: every control is made from the very same Object/Class: Control. Which contains the paint event it self.. with a few more.. like click... etc...
Of course you can override those functions and personalize them a little bit.. but..
Lol i still don't get it, you're not giving me direct examples xD
What would i need to be able to DRAW in a PICTUREBOX.
And btw blubb e.graphics.drawXXXXX doesn't work, can't handle that many arguments or whatever.
Quote Originally Posted by Invidus View Post
Lol i still don't get it, you're not giving me direct examples xD
What would i need to be able to DRAW in a PICTUREBOX.
And btw blubb e.graphics.drawXXXXX doesn't work, can't handle that many arguments or whatever.
My name is J-Deezy, not Blubb. C'mon I didn't think you were noob enough to type e.Graphics.DrawXXXX I put the XXXX there because intellisense has like 20 different "Draw....." options under e.Graphics so i mean look for what you want to do. Also if you scrolled up about 9 or so posts I posted an entire GDI created form layout which you can test and see.
Direct "examples"
No of course i didn't put XXX actually in there =.=
I'm just not getting the code you posted, i can't read it properly xD
Quote Originally Posted by Invidus View Post
No of course i didn't put XXX actually in there =.=
I'm just not getting the code you posted, i can't read it properly xD
What don't you get about it? (and did it work when you C+Ped?)
Alrighty, i'll try C+P now lol.
And i'm not getting the necessity of the rectangle?
I would think that C+P would work
yeah but if you C+P, and you can't read the code that you C+Ped, you won't know what's going to happen
Quote Originally Posted by Invidus View Post
yeah but if you C+P, and you can't read the code that you C+Ped, you won't know what's going to happen
Yes but as this is graphics you will see what gets drawn, and you can then try and work backwards and see what I did that ended in that result. I used a rectangle because I was drawing rectangular shapes /
Posts 16–25 of 25 · Page 2 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us