By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,778 Members | 1,318 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,778 IT Pros & Developers. It's quick & easy.

How do I use a PictureBox ctl as in VB ?

P: n/a
Hi. I need to use a PictureBox ctl (as in VB) - the picturebox should
have at least the CLS method, and the backcolor AND forecolor
properties.

The "Image" control is therefore not what I need. In the toolbox I
click on "More Controls", but I can't see a picturebox anywhere. It
should be in Comctl32.dll, I think, but how do I set a reference to
that dll so that its contents appears in the list of usable controls ?
The goal of all this is that I need to use a custom designed
progressbar I use (with great effect, heh) in VB.

Thank you all.
Alex

May 22 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
I have to mention that I need to draw on it, and therefore I also need
the CurrentX and CurrentY properties, the Line method, the Print
method, to name a few....

May 22 '06 #2

P: n/a
It's not possible. You have a couple of options:

1) Create an ActiveX control in Visual Basic containing the PictureBox
control.
2) Find a Third party PictureBox like control that will work on Access
forms.
3) See:
http://www.lebans.com/imageclass.htm
ImageClass has been replaced by the PictureBoxA97 project. A standard Image
control is wrapped within a class to allow the control to resemble the
standard Visual Basic PictureBox control. Simple drawing methods are
directly supported as is Text output with rotation. A handle to a Device
Context is exposed to allow the developer to use the full range of Graphic
API's. Also supports Screen Grabs, Copy to Clipboard and Save Image control
to a disk Bitmap file. Here is the Access 2000 version, PictureBoxA2K.zip
--

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Radu" <cu*************@yahoo.com> wrote in message
news:11**********************@y43g2000cwc.googlegr oups.com...
I have to mention that I need to draw on it, and therefore I also need
the CurrentX and CurrentY properties, the Line method, the Print
method, to name a few....

May 22 '06 #3

P: n/a
Thank you very much. I am currently studying your code.
Alex.

May 25 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.