Solved

Calendar size change on Outlook custom form

Posted on 2001-07-09
7
253 Views
Last Modified: 2006-11-17
I have created a custom Outlook 2000 form which contains a calendar control.  

The problem I have is that whenever I open the form the size of the calendar changes to that specified on the form properties - this also happens when I switch between the view and read pages.

What usually happens is that the calendar is set at 300 x 300 pixels, and when I make any changes it suddenly becomes tiny.

I have tried specifying the size of the calendar in the code window but this hasn't worked.

Can anyone help????

Cheers,

Sol.
0
Comment
Question by:solipsist
7 Comments
 
LVL 22

Expert Comment

by:CJ_S
ID: 6268409
Ho have you specified the size? The size of the outlook forms are specified in twips, so you'd better use like 3000 instead of 300 :-/...

Regards,
CJ
0
 

Author Comment

by:solipsist
ID: 6268433
I tried that in the code window, but it made no difference...

The problem is that it wont stay the same size for longer than about 20 seconds.
0
 
LVL 22

Expert Comment

by:CJ_S
ID: 6268451
Just re-read the question. And I think I know why. The calendar control is an activex control, meanign that it does not retain state. You need to do that yourself in code!

If you check the events of the form you will probably also see something like WriteProperties and ReadProperties and InitializeProperties. Together with that comes the PropertyBag as the parameter. You can use that propertybag to put in variables, and later one retrieve them again.

Assuming VB-code:
In the ReadProperties you use the PropBag.ReadProperty function (check the parameters, i can't recall them out of the top of my head, but DO use the last default parameter!!) Here you also place the resize code for the form. The WriteProperties will be called when the form is being closed (or hidden).  The InitProperties will only be called once, but please do use it also for resizing the form.

Just check them out...

regards,
CJ
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

Author Comment

by:solipsist
ID: 6268467
I will give it a try & tell you how it goes...
0
 

Author Comment

by:solipsist
ID: 6268623
I will give it a try & tell you how it goes...
0
 
LVL 54

Expert Comment

by:nico5038
ID: 7487614

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 removed
Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Nic;o)
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 7518907
Per recommendation, points NOT refunded and question closed.

Netminder
EE Admin
0

Featured Post

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

810 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