Link to home
Start Free TrialLog in
Avatar of msiva
msiva

asked on

Tiff Image

Can I place an tif format image in vb controls?
1.My exact problem is I'm not able to get into the controls.
2.If possible can u let me an example?
Avatar of North
North

The standard controls that ship with VB are not designed to contain tif format graphics files.

I do not know the exact reason why this is, but it may be because the tif format has about a million and one different variations, i.e. a tif file created in one graphics package will not necessarily open in another package.

The formats that are supported by all VB controls with a "Picture" property are:

Gifs (*.gif)
Bitmaps (*.Bmp) (as created in paintbrush)
JPEG (*.jpg)
Windows Metafiles (*.wmf) or (*.emf)
Icons (*.ico)
Cursors (*.cur)

I recommend that you open up your tif files in a package that supports them and save them as one of the above types.

To assign a picture to a control, i.e. PictureBox, Image, Button, etc. simply place the control on your form.  Open up the properties window (View --> Properties Window) left click on the control to select it.  In the properties window, scroll down to find the "Picture" property.  When you click on the Picture Property the standard open file dialog will appear, point it to your converted graphics file and click Ok.  (In the case of a button you will also have to set it's "Style" property to "1 - Graphical".

Hope this helps.
North
Hi,

North is correct, the basic VB graphic controls do not support TIFF images.

I'd recommend that you add the WANG ImageEdit or the Kodak ImageEdit control to the resolve your issue.

Kodak purchased WANG, so they are both the same control and they are included free with Windows. If you don't see them on your system, run the control panel's add/remove programs option and select Windows Setup, accessories, Imaging.


Hope this helps
ED
ASKER CERTIFIED SOLUTION
Avatar of scj1
scj1

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of msiva

ASKER

I know all such things except from the gvbox activex control. I'll try first in that control,after that let u know points