473,503 Members | 6,587 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

lebans calendar

I recently installed Stephan Lebans calendar control into an application.
Only problem is that it always launches at the extreme right of the screen
with most of the dialog off screen. I am activating it with a command
button next to the field I want to update. Dont know if this is the issue.
Any clues??
Nov 13 '05 #1
4 1901
The MonthCalendar class exposes a WindowLocation property. THis can be
set before the ShowMonthCalendar function is called or once the Calendar
is opened, via the Properties->Calendar Location menu.
Are you using the latest version? The class has error checking to ensure
the Calendar does not popup off screen.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Andrew Chanter" <he****@radsolutions.com.au> wrote in message
news:af*****************@news-server.bigpond.net.au...
I recently installed Stephan Lebans calendar control into an application. Only problem is that it always launches at the extreme right of the screen with most of the dialog off screen. I am activating it with a command
button next to the field I want to update. Dont know if this is the issue. Any clues??


Nov 13 '05 #2
Thanks Stephen. I am using version 2.01
"Stephen Lebans" <Fo****************************************@linval id.com>
wrote in message news:Rl**********************@ursa-nb00s0.nbnet.nb.ca...
The MonthCalendar class exposes a WindowLocation property. THis can be
set before the ShowMonthCalendar function is called or once the Calendar
is opened, via the Properties->Calendar Location menu.
Are you using the latest version? The class has error checking to ensure
the Calendar does not popup off screen.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Andrew Chanter" <he****@radsolutions.com.au> wrote in message
news:af*****************@news-server.bigpond.net.au...
I recently installed Stephan Lebans calendar control into an

application.
Only problem is that it always launches at the extreme right of the

screen
with most of the dialog off screen. I am activating it with a command
button next to the field I want to update. Dont know if this is the

issue.
Any clues??

Nov 13 '05 #3
Stephen,

The issue is that the method your calendar uses to store and retrieve
properties wont work in an adp. I have done some delving and come up with
the following code samples which provide the same functionality in an adp.
Unfortunately my first attempt to integrate this code into your calendar was
disastrous. The calendar only appeared as a couple of small blue bars on
the screen and my session effectively hung. Anyway I will try this again
tomorrow.

Public Sub setAccessProperty(PrpName As String, PrpValue As String)

Application.CurrentProject.Properties.Add _
PrpName, PrpValue

End Sub

Public Function getAccessProperty(PrpName As String) As String

Dim strConn As String
Dim prp As AccessObjectProperty

For Each prp In Application.CurrentProject.Properties
If prp.Name = PrpName Then
getAccessProperty = prp.Value
Exit For
End If
Next prp

End Function

"Andrew Chanter" <he****@radsolutions.com.au> wrote in message
news:Ud******************@news-server.bigpond.net.au...
Thanks Stephen. I am using version 2.01
"Stephen Lebans" <Fo****************************************@linval id.com>
wrote in message news:Rl**********************@ursa-nb00s0.nbnet.nb.ca...
The MonthCalendar class exposes a WindowLocation property. THis can be
set before the ShowMonthCalendar function is called or once the Calendar
is opened, via the Properties->Calendar Location menu.
Are you using the latest version? The class has error checking to ensure
the Calendar does not popup off screen.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Andrew Chanter" <he****@radsolutions.com.au> wrote in message
news:af*****************@news-server.bigpond.net.au...
I recently installed Stephan Lebans calendar control into an

application.
Only problem is that it always launches at the extreme right of the

screen
with most of the dialog off screen. I am activating it with a command
button next to the field I want to update. Dont know if this is the

issue.
Any clues??


Nov 13 '05 #4
OK Andrew, too many Emails recently asking me to remove the DAO REF and
use of Custom Props. I have modified the code to use the native
Get/SaveSetting methods.

THe newest version is in the mail to you. I would appreciate if you
would test it out before I publish it to my Web site.
:-)
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Andrew Chanter" <he****@radsolutions.com.au> wrote in message
news:9U*****************@news-server.bigpond.net.au...
Stephen,

The issue is that the method your calendar uses to store and retrieve
properties wont work in an adp. I have done some delving and come up with the following code samples which provide the same functionality in an adp. Unfortunately my first attempt to integrate this code into your calendar was disastrous. The calendar only appeared as a couple of small blue bars on the screen and my session effectively hung. Anyway I will try this again tomorrow.

Public Sub setAccessProperty(PrpName As String, PrpValue As String)

Application.CurrentProject.Properties.Add _
PrpName, PrpValue

End Sub

Public Function getAccessProperty(PrpName As String) As String

Dim strConn As String
Dim prp As AccessObjectProperty

For Each prp In Application.CurrentProject.Properties
If prp.Name = PrpName Then
getAccessProperty = prp.Value
Exit For
End If
Next prp

End Function

"Andrew Chanter" <he****@radsolutions.com.au> wrote in message
news:Ud******************@news-server.bigpond.net.au...
Thanks Stephen. I am using version 2.01
"Stephen Lebans" <Fo****************************************@linval id.com>
wrote in message

news:Rl**********************@ursa-nb00s0.nbnet.nb.ca...
The MonthCalendar class exposes a WindowLocation property. THis can be set before the ShowMonthCalendar function is called or once the Calendar is opened, via the Properties->Calendar Location menu.
Are you using the latest version? The class has error checking to ensure the Calendar does not popup off screen.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Andrew Chanter" <he****@radsolutions.com.au> wrote in message
news:af*****************@news-server.bigpond.net.au...
> I recently installed Stephan Lebans calendar control into an
application.
> Only problem is that it always launches at the extreme right of the screen
> with most of the dialog off screen. I am activating it with a command > button next to the field I want to update. Dont know if this is the issue.
> Any clues??
>
>




Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
2006
by: Larry R Harrison Jr | last post by:
Sometime, if an error has occured or even if a user has answered NO to a MsgBox Y/N question, the Lebans calendar control will prevent the form from closing. I know the Lebans calendar control...
5
3413
by: Larry R Harrison Jr | last post by:
I use the Lebans calendar control and love it; the only thing is that it commonly starts out at the year 1899 rather than the current year. Is there a way to specifically tell it to start at the...
6
516
by: Mason | last post by:
I have a quick, probably easy, question about Lebans' calendar program. I have a form that allows a user to click on different technicians. When this happens, Lebans' calendar comes up with...
5
1375
by: Michael Gramelspacher | last post by:
I am using Lebans's calendar with Access 97 running on Windows 95, and Access 2000 on a different machine also running Windows 95. I had been using an earlier version of the calendar without...
16
3035
by: DFS | last post by:
If you're listening, I want the middle of the calendar (showing 1 month) to open below the cursor position. It currently opens just to the right and below the cursor position. I hunted through...
3
1453
by: CuriousOne1 | last post by:
Hi all, I don't know if anyone has come accross this before. I've been using Steve Lebans Calendar control (available here: www.lebans.com/monthcalendar.htm ) for several database application...
5
1493
by: Vaudousi | last post by:
Hi Dear Friends Is it possible to integrate Lebans calendar on a form in lieu and place of the Microsoft MonthView ? Many TKS in advance. José
0
7193
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7067
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7264
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7316
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4992
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
371
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.