Solved

Calendar size change on Outlook custom form

Posted on 2001-07-09
7
251 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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
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 seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

746 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

11 Experts available now in Live!

Get 1:1 Help Now