Solved

Tiff Image

Posted on 2000-04-17
4
210 Views
Last Modified: 2013-11-19
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?
0
Comment
Question by:msiva
4 Comments
 
LVL 1

Expert Comment

by:North
ID: 2722542
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
0
 
LVL 1

Expert Comment

by:Ask_ED
ID: 2722972
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
0
 
LVL 1

Accepted Solution

by:
scj1 earned 50 total points
ID: 2723029
Although the default VB controls do not support TIFF format, if you are running Windows 95sr2, Windows 98, Windows NT etc. you can use the KODAK Imagaing ActiveX control set (imgscan.ocx etc.) found in your system folder.

Failing that (because it can be a bit difficult to intechange these controls with other VB picture controls), use a fantastic shareware image processing ActiveX component called gvBox from JCOConsulting:

http://www.jcoconsulting.com/gvocx.htm

This fully supports TIFF and JPEG as well as the normal image types. I personally use it in apps which have to preprocess images for the Internet.

StuJ.
0
 

Author Comment

by:msiva
ID: 2725324
I know all such things except from the gvbox activex control. I'll try first in that control,after that let u know points
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Use Multiple Forms 4 48
MS Access - Capture pressed key onclick 4 28
Exit a vb6 apps when a calling it apps closes 15 42
VBA Shell can't Find Word document 11 75
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Learn how to set up basic frames and paths in Prezi and understand the open space that Prezi allows you to create presentations in.
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now