Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 19th, 2004, 04:40 PM
ric ric is offline
Registered User
 
Join Date: Aug 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Insert images into rtfText

Hy All.
In my notepad project I have inserted the possibility to insert an image. But I get an error message:
Run time error 438.
Message error: Property or method not supported by the object
.


Private Sub Command2_Click()
    Clipboard.Clear
    Clipboard.SetData Picture1.Picture


    SendMessage Screen.ActiveForm.rtfText.hwnd, WM_PASTE, 0, 0&

    Screen.ActiveForm.rtfText.SetFocus



    Unload Me
End Sub

 Anyone of you have ideas where is error ?
Thanks in advance.



 
Old February 19th, 2004, 05:18 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dear Ric,
the IDE debugger is one of the best I ever used.
Put a breakpoint at the beginning of the Click event, and run your project. It will stop in the line where the error is.
Marco





Similar Threads
Thread Thread Starter Forum Replies Last Post
Load Images from and Save Images to a Database cyndie VB.NET 2 August 17th, 2008 06:42 AM
How to insert/get images to/from a database in c#? tal C# 2005 2 April 17th, 2007 03:04 PM
How to insert images to MySQL (BLOB) wkm1925 ASP.NET 2.0 Professional 0 November 19th, 2006 06:29 AM
trigger to insert current date on insert kev_79 SQL Server 2000 3 January 23rd, 2006 05:58 PM
Insert Gif Images onto a Access form? sampow Access 4 April 1st, 2004 10:32 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.