?
Solved

Ole-Object, Paint, default size.

Posted on 2002-07-26
4
Medium Priority
?
387 Views
Last Modified: 2006-11-17
experts,
 i am trying to use an Ole bound control on my form. I want it to be of class Paint.Pictre when the form opens up.
 I do the following in the Form_load() event.
 
    Me.OleCtl.Class = "Paint.Picture"
    Me.OleCtl.OLETypeAllowed = acOLEEmbedded
    Me.OleCtl.Action = acOLECreateEmbed

 This works good. and i get to see the Paint obj in the control when i open the form.

Problem -
 I would like to know a way to control the default size of the Paint document inside this control. The size of my ole control frame (on the form) is fixed while the default size that the paint document takes inside this frame is much bigger and results in a clipped view of the document.(and results in showing up scroll bars).

  Is there a way to use the SourceItem property ? just a possible clue. Usually i read 'refer the Ole server's documentation' but dont know where to find one for Paint.

 Please help.
regds
0
Comment
Question by:tubelight
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 5

Expert Comment

by:funke
ID: 7181071
set the "size mode" property to the setting you want - I think there are three settings - you can test it by setting it in the properties window and then opening your form
0
 

Author Comment

by:tubelight
ID: 7181234
funke,
thx, but size mode property changes the size of the 'window' in which the paint document is contained. But has no effect on the 'canvas' of the Paint image (document).
I am not sure if this is possible, easily.
How and where do i get information on the Paint.Picture Object ?
0
 
LVL 54

Expert Comment

by:nico5038
ID: 7281933

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
 - PAQ'd and pts refunded
Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Nic;o)
0
 

Accepted Solution

by:
ComTech earned 0 total points
ID: 7315536
This question will be placed in PAQ and points refunded.

Best regards,
ComTech
Community Support
Administrator @ EE
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Suggested Courses

765 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