Results 1 to 19 of 19

Thread: MS Calendar

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Location
    Granby, Qc, Canada
    Posts
    602

    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:
    1. myCalendar.FirstDay = vbSunday

    Anyone knows why?

  2. #2
    Hyperactive Member
    Join Date
    Jul 2005
    Location
    South Africa
    Posts
    400

    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

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Location
    Granby, Qc, Canada
    Posts
    602

    Re: MS Calendar

    There's no setting for first day of week in regional settings !

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: MS Calendar

    Is there anything about those 2 computers that are different than all the rest?

    Different make?
    Different model?
    Different OS?

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Location
    Granby, Qc, Canada
    Posts
    602

    Re: MS Calendar

    No, anyway, the make and model don't affect this kind of stuff... well, I don't think so

  6. #6

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Location
    Granby, Qc, Canada
    Posts
    602

    Re: MS Calendar

    If it's not suppose to be use in VB, why is it in the component list ?

  8. #8
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: MS Calendar

    Quote 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.

  9. #9
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: MS Calendar

    Quote 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.

  10. #10
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: MS Calendar

    Quote 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).

  11. #11
    Hyperactive Member
    Join Date
    Jul 2005
    Location
    South Africa
    Posts
    400

    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

  12. #12
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: MS Calendar

    The dates are the same, though

  13. #13
    Addicted Member
    Join Date
    Jul 2002
    Posts
    147

    Re: MS Calendar

    Quote 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...

  14. #14
    Hyperactive Member
    Join Date
    Jul 2005
    Location
    South Africa
    Posts
    400

    Re: MS Calendar

    good point

    but maybe the control he is using, is affected differently. Its a tricky one

  15. #15

  16. #16
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: MS Calendar

    Quote 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.

  17. #17

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Location
    Granby, Qc, Canada
    Posts
    602

    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

  18. #18
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    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.

  19. #19

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width