Images Controls that load picture from a recordset without Data Control

Images Controls that load picture from a recordset without Data Control

Post by Alexe » Wed, 24 Sep 1997 04:00:00



Hi,

I need one kind of Control that can load a image from a recordset without
Data Control. If possible this control can show images > 256 Colors. I use
VB5 With SQL65.

Ex.:
Sub Load_Image()
        dim lConnect as Connection
        dim lRecordset as Recordset

        set lConnect = FG_SQLConnect(gStringConnect)
        set lRecordSet = FG_SQLOpen("Select Image from T_IMG where CD_IMG = 1",
lConnect)

        MyControl.property = lRecordset.fields("Image").value
End Sub


Fortaleza, Ce - Brazil

 
 
 

Images Controls that load picture from a recordset without Data Control

Post by Geo » Tue, 30 Sep 1997 04:00:00



> Hi,

> I need one kind of Control that can load a image from a recordset
> without
> Data Control. If possible this control can show images > 256 Colors. I
> use
> VB5 With SQL65.

> Ex.:
> Sub Load_Image()
>         dim lConnect as Connection
>         dim lRecordset as Recordset

Why do you use l.  You should use o for object.  l is used for long.

>         set lConnect = FG_SQLConnect(gStringConnect)
>         set lRecordSet = FG_SQLOpen("Select Image from T_IMG where
> CD_IMG = 1",
> lConnect)

>         MyControl.property = lRecordset.fields("Image").value
> End Sub


> Fortaleza, Ce - Brazil


 
 
 

1. Loading bitmaps into image controls without data object

Is there a LoadPicture equivalent for bitmaps stored in databases?
I have a large collection of icon-sized and smaller bitmaps, and I
need to be able to display them in an image control at run-time.

I tried frmForm.imgIcon.Picture = dynIconDynaset("iconFieldName"),
but get a "Type Mismatch" error.

I know I could create a data control on each form and bind a
picture control to it, but that seems sloppy since I only change
the icon when I load the form.

Any ideas?

-Simon

2. pgsql-server/ oc/src/sgml/manage-ag.sgml

3. VB4:Storing PICTURES in Access DB WITHOUT Data Control

4. Last day of the month??

5. Pictures without a data control

6. How use DTS??

7. Data Bound Picture or Image Control in JPEG format

8. How to store and retrieve image (bitmap) in Access without Data Control

9. Images without data-control

10. How to store and retrieve image (bitmap) in Access without Data Control

11. Loading Images from Access into Image Control

12. Image Datatype - binding datasource to a controls picture property