Solved

Calendar size change on Outlook custom form

Posted on 2001-07-09
7
252 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mapBully challenge 6 115
mapShare challenge 13 91
silent install of security banner via msiexec command 4 76
"Black Box" Testing of Control System Software 2 26
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

863 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now