|
-
Oct 11th, 2005, 08:31 AM
#1
Thread Starter
Fanatic Member
MS Calendar
I'm using MS Calendar in my VB application and something strange is happening. On all computers, it shows the calendar from Sunday to Saturday but on 2 computers, it's Monday to Sunday even if I put this :
VB Code:
myCalendar.FirstDay = vbSunday
Anyone knows why?
-
Oct 11th, 2005, 09:42 AM
#2
Hyperactive Member
Re: MS Calendar
Hi Gensor
the only thing i can think of is the regional setting on those two computers might be different, i had a similar problem with currency, it worked on one computer but not the other, regardless of the code i used, the fault was in the regional setting, once i corrected that the problem was solved.
hope this helps
-
Oct 11th, 2005, 09:43 AM
#3
Thread Starter
Fanatic Member
Re: MS Calendar
There's no setting for first day of week in regional settings !
-
Oct 11th, 2005, 09:51 AM
#4
Re: MS Calendar
Is there anything about those 2 computers that are different than all the rest?
Different make?
Different model?
Different OS?
-
Oct 11th, 2005, 10:34 AM
#5
Thread Starter
Fanatic Member
Re: MS Calendar
No, anyway, the make and model don't affect this kind of stuff... well, I don't think so
-
Oct 11th, 2005, 10:47 AM
#6
Re: MS Calendar
Try using MonthView vb's native control instead of one developed for vba apps.
-
Oct 11th, 2005, 10:50 AM
#7
Thread Starter
Fanatic Member
Re: MS Calendar
If it's not suppose to be use in VB, why is it in the component list ?
-
Oct 11th, 2005, 10:52 AM
#8
Re: MS Calendar
 Originally Posted by Gensor
No, anyway, the make and model don't affect this kind of stuff... well, I don't think so
The answer to your question is not easy to determine. When something works everywhere except one or two machines, the answer is almost never easy to determine, therefore, nothing can be ruled out or dismissed without through investigation.
Something IS different about those two machines. If this were not the case, then your application would be functioning on them the same way they are on the rest of the machines.
BTW: RhinoBull makes a good suggestion.
-
Oct 11th, 2005, 12:41 PM
#9
Re: MS Calendar
 Originally Posted by Gensor
If it's not suppose to be use in VB, why is it in the component list ?
Is is shown in the component list because it has been installed on your computer as a component. All components that have been registered are shown in the list.
Just because something is in the list does not mean that it is a good idea to use it, some of the reasons not to use 'random' items there are:
- They may be unsupported items which are part of installed programs. You will have no documentation for them, and so will not know any issues.
- In the case of many controls provided by Office (and other programs), you do not have permission to re-distribute the controls.
- They may not work at all with VB (on my previous PC, the first 30ish items were not compatible).
- There may be 'design issues' during interaction with VB programs (even tho theoretically there shouldn't be), which leads to errors under certain circumstances.
-
Oct 11th, 2005, 12:46 PM
#10
Re: MS Calendar
 Originally Posted by Gensor
If it's not suppose to be use in VB, why is it in the component list ?
Answer is quite simple: it's part of MS Office distribution so if you have Office installed then this control would be available in the components list (just like Forms 2.0 library).
-
Oct 12th, 2005, 03:29 AM
#11
Hyperactive Member
Re: MS Calendar
Hi
I'm just thumb sucking here, but it could be in the machine formatting, NTFS or FAT32 as the file structures are different
-
Oct 12th, 2005, 03:32 AM
#12
Re: MS Calendar
The dates are the same, though
-
Oct 12th, 2005, 03:58 AM
#13
Addicted Member
Re: MS Calendar
 Originally Posted by Gensor
There's no setting for first day of week in regional settings !
But what's considered the first day of the week changes by what regional settings you have.
But if the regional settings are the same then it depend on something else...
-
Oct 12th, 2005, 03:59 AM
#14
Hyperactive Member
Re: MS Calendar
good point
but maybe the control he is using, is affected differently. Its a tricky one
-
Oct 12th, 2005, 07:52 AM
#15
Re: MS Calendar
It is not tricky at all. Read one of my previous replies.
-
Oct 12th, 2005, 08:01 AM
#16
Re: MS Calendar
 Originally Posted by stickan
But what's considered the first day of the week changes by what regional settings you have.
But if the regional settings are the same then it depend on something else...
He has checked the regional settings and they are all the same for all machines. All the machines are in his shop, so they should have the same settings.
I'm inclined to believe, as has been pointed out, that it is the control itself.
-
Oct 12th, 2005, 08:08 AM
#17
Thread Starter
Fanatic Member
Re: MS Calendar
I'm changing the control right now, but personnally, I think the control is ugly comparate to MS Calendar ! That's why I didn't want to change, but now, I have no other choice.
It's causing me trouble again. I said the font size was correct in the IDE, but when I did a new .exe, it's correct on my .exe on my computer, but for the others computers, it's really small. They have a font size of about 2 or 3!!! But I didn't change anything
-
Oct 12th, 2005, 08:11 AM
#18
Re: MS Calendar
Actually, I agree with you on the looks of the Calendar control vs the MonthView control. I prefer the Calendar controls looks as well.
However, the Monthview does have the virtue of working consistently.
-
Oct 12th, 2005, 08:20 AM
#19
Re: MS Calendar
When it comes to personal preferences I like MonthView better than the Calendar control - I think last one is ugly but again it's all about taste.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|