Article View: fj.lang.visualbasic
Article #816RichTextBox and DisplayType does not work! PLEASE HELP!
From: TA
Date: Wed, 21 Jan 1998 00:00
Date: Wed, 21 Jan 1998 00:00
17 lines
953 bytes
953 bytes
When I use the txtObject.OLEObjects(key).DisplayType property -VB crashes.
My intention was to let the user of the application, insert multiple
OLE-objects into a RTF-box, but when I use the displayType property to set
the objects appearance to icons, the fun stops.
My wish is to start up the application (paint or whatever) in a seperate
window and not inside the RTF-box.
Here's how I do
Commandbutton1_click:
rtfBox.OLEObjects.Add , "obj1", , "Paint.Picture"
Commandbutton2_click:
rtfBox.OLEObjects("obj1").DisplayType = rtfDisplayIcon
Thanks!
Technical Details
Message-ID:
<01bd26a4$b2f785a0$748aefc2@121856857661>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 105c2e,59bf5478dc8fe24f,start X-Google-Attributes: gid105c2e,public From: "TA" <anzie@post3.tele.dk> Subject: RichTextBox and DisplayType does not work! PLEASE HELP! Date: 1998/01/21 Message-ID: <01bd26a4$b2f785a0$748aefc2@121856857661> X-Deja-AN: 318092062 Organization: Anzie Newsgroups: fj.lang.visualbasic