Adding Image Class to VB setup program. 
Author Message
 Adding Image Class to VB setup program.

I dynamically create a image control in a webbrowser control and then set
the picture property.  On an NT development machine and on a Windows 98
development machine everything works fine.  When I move to a clean Windows
98 machine, I get an error:

"object does not support this property" when I set the picture property as
shown below.

I got the code for the control by adding it to an interdev project.  I
assume that this class must not be registered.  Is there a way to get the
class registered.  I already added fm20.dll to the setup program.

Thanks in advance!

temp = temp + "<OBJECT classid='clsid:4C599241-6926-101B-9992-00000B65C6F9'
height=" & _
                image_height & " id=Image" & image_file_count & "
name=Image" & _
                image_file_count & " style='HEIGHT: " & image_height & _
                "px; LEFT: 0px; TOP: 0px; WIDTH: " & image_width & "px' "

    temp = temp & "width=207 VIEWASTEXT>' "
    temp = temp & "<PARAM NAME='AutoSize' VALUE='0'> "
    temp = temp & "<PARAM NAME='BorderColor' VALUE='2147483654'> "
    temp = temp & "<PARAM NAME='BackColor' VALUE='2147483663'> "
    temp = temp & "<PARAM NAME='BorderStyle' VALUE='0'> "
    temp = temp & "<PARAM NAME='MousePointer' VALUE='0'> "
    temp = temp & "<PARAM NAME='SizeMode' VALUE='1'> "
    temp = temp & "<PARAM NAME='SpecialEffect' VALUE='0'> "
    temp = temp & "<PARAM NAME='Size' VALUE='7000;8000'> "
    temp = temp & "<PARAM NAME='PictureAlignment' VALUE='2'> "
    temp = temp & "<PARAM NAME='PictureTiling' VALUE='0'> "
    temp = temp & "<PARAM NAME='Picture'
VALUE='e:\qtools97\qview\images\1010.gif'> "
    temp = temp & "<PARAM NAME='VariousPropertyBits' VALUE='27'></OBJECT>"

    temp = temp + "</A></td>"
    temp = temp + "</tr>"
    temp = temp + "<tr><td>"
    temp = temp + "<p>This is some text</p>"
    temp = temp + "</td></tr>"
    temp = temp + "</table>"
    temp = temp + "</div>"

    WebBrowser1.Document.All.divHTML.innerHTML = temp

frmMain.WebBrowser1.Document.All.divHTML2.Document.image1.Picture =
LoadPicture(App.Path & "\support.wmf")



Fri, 13 Sep 2002 03:00:00 GMT  
 Adding Image Class to VB setup program.
You have to use Set with LoadPicture:

Set frmMain.WebBrowser1.Document.All.divHTML2.Document.image1.Picture =
LoadPicture(App.Path & "\support.wmf")

--
Eduardo A. Morcillo
http://www.domaindlx.com/e_morcillo



Sat, 14 Sep 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Adding Image Class to VB setup program.

2. Adding registry key during program setup

3. Adding Code to Setup Program

4. VB5: adding program (desktop) link in Setup

5. DAO Blob Adding/Extracting (audio files, text files, image files, program files)

6. Image class and web image

7. VB6 my setup program created with the setup wizard is SLOW

8. VB4 Setup Wizard and other Setup Programs

9. Is there a better Setup Program than Setup Wizard

10. Setup Kit Setup Program Goes Nowhere

11. Setup Wizard out.....my setup program in.

12. How to add code to custom added dialogbox setup installation

 

 
Powered by phpBB® Forum Software