|
Why a picturebox instead of form
Author |
Message |
Cyberdud #1 / 5
|
 Why a picturebox instead of form
Practically every example with graphical API functions (BitBlt, LineTo, etc...) use a PictureBox as DC, why not a form? Is there a major advantage to it? Thanks, {*filter*}dude
|
Wed, 18 Jun 1902 08:00:00 GMT |
|
 |
Terr #2 / 5
|
 Why a picturebox instead of form
i bet its because of the overhead no doubt a picturebox uses half the memory of a form --
Quote: > Practically every example with graphical API functions (BitBlt, LineTo, > etc...) use a PictureBox as DC, why not a form? Is there a major advantage > to it? > Thanks, > {*filter*}dude
|
Wed, 18 Jun 1902 08:00:00 GMT |
|
 |
Cyberdud #3 / 5
|
 Why a picturebox instead of form
So using a picturebox (nearly) the size of my form would be smart thing to do?
Quote: > i bet its because of the overhead no doubt a picturebox uses half the > memory of a form > --
> > Practically every example with graphical API functions (BitBlt, LineTo, > > etc...) use a PictureBox as DC, why not a form? Is there a major advantage > > to it? > > Thanks, > > {*filter*}dude
|
Wed, 18 Jun 1902 08:00:00 GMT |
|
 |
Steve [Ethno #4 / 5
|
 Why a picturebox instead of form
Quote: > So using a picturebox (nearly) the size of my form would be smart thing to > do?
No. The second poster was incorrect. The only reason that pictureBoxes are normally used is that is is easier for the pupil to place graphics, etc, with a normal control, than it would be with a form's DC. There is no difference in the results; if you are looking to paint over your form, I suggest you use the form's DC. steve
|
Wed, 18 Jun 1902 08:00:00 GMT |
|
 |
Cyberdud #5 / 5
|
 Why a picturebox instead of form
Okay thank you very much.
Quote: > > So using a picturebox (nearly) the size of my form would be smart thing to > > do? > No. The second poster was incorrect. The only reason that pictureBoxes are > normally used is that is is easier for the pupil to place graphics, etc, > with a normal control, than it would be with a form's DC. There is no > difference in the results; if you are looking to paint over your form, I > suggest you use the form's DC. > steve
|
Wed, 18 Jun 1902 08:00:00 GMT |
|
|
|