[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Calendar size change on Outlook custom form

Posted on 2001-07-09
7
Medium Priority
?
262 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
[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
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
Technology Partners: 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!

 

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Make the most of your online learning experience.
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Simple Linear Regression

650 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