Results 1 to 4 of 4

Thread: problem with opening calendar

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2007
    Posts
    2

    problem with opening calendar

    hi all,

    can someone help me pls.
    when i open a calendar in a new form, on some pc's it works and a few others i get te following message "-2147319765(8002802b) automation error element not found"

    when i install my program i have to choose if a want to keep the most recent dll.
    i dont want to install the old ones.

    kind regards

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

    Re: problem with opening calendar

    Welcome to VBForums

    The calendar control is not designed for VB (it is for VBA), so is prone to errors.

    You should use a MonthView or DateTimePicker instead, which can be found in the components "Microsoft Windows Common Controls ..."

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: problem with opening calendar

    Actually the Calendar Control is part of Office and only when you try to use it in a non-VBA app will it create headacches for you.

    Can you give us a little more info on what your app uses or does?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  4. #4

    Thread Starter
    New Member
    Join Date
    Jun 2007
    Posts
    2

    Re: problem with opening calendar

    the users have to fill in when the production of a certain produkt begins and end

    so they get 2 textboxes and a 2 command buttons, when they press the command button a new form with the calendar will show to select the date to fill in the textbox.

    when they press the commandbutton the error comes sometimes

    i will try now MonthView or DateTimePicker thanks for the replys

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