Results 1 to 11 of 11

Thread: [2005] MonthCalendarControl

  1. #1

    Thread Starter
    Lively Member rlk75's Avatar
    Join Date
    Oct 2007
    Location
    Pittsburgh, PA
    Posts
    79

    Question [2005] MonthCalendarControl

    I have one monthcalendarcontrol that I want to use to select a Pay Period begin and a Pay Period end date.

    Can I have the user pick a begin date, then display that in one textbox, then have the user pick an end date and display that in a separate textbox or would I have to have two month calendar controls to display the start and end dates in two separate textboxes?

  2. #2

    Thread Starter
    Lively Member rlk75's Avatar
    Join Date
    Oct 2007
    Location
    Pittsburgh, PA
    Posts
    79

    Re: [2005] MonthCalendarControl

    Oh wait. I see how this control works. you have to pick a start date, then drag the cursor to the end date. I was thinking of just clicking on a start date then clicking on an end date. Maybe this is just as good if not better. Hmm. I kind of don't envision a user knowing to do this though.

  3. #3
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,423

    Re: [2005] MonthCalendarControl

    add context help to your app.

    try this

  4. #4
    Frenzied Member toecutter's Avatar
    Join Date
    Apr 2006
    Location
    Brisbane, Australia
    Posts
    1,160

    Re: [2005] MonthCalendarControl

    Code:
    Private Sub MonthCalendar1_DateSelected(ByVal sender As Object, ByVal e As System.Windows.Forms.DateRangeEventArgs) Handles MonthCalendar1.DateSelected
            Me.TextBox1.Text = Me.MonthCalendar1.SelectionStart
        End Sub

  5. #5

    Thread Starter
    Lively Member rlk75's Avatar
    Join Date
    Oct 2007
    Location
    Pittsburgh, PA
    Posts
    79

    Re: [2005] MonthCalendarControl

    Quote Originally Posted by .paul.
    add context help to your app.

    try this

    That's a cool idea.

  6. #6
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: [2005] MonthCalendarControl

    Experience has taught us that having two drop down calendar controls seem to be the most intuitive and expected interface.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  7. #7

    Thread Starter
    Lively Member rlk75's Avatar
    Join Date
    Oct 2007
    Location
    Pittsburgh, PA
    Posts
    79

    Question Re: [2005] MonthCalendarControl

    Quote Originally Posted by techgnome
    Experience has taught us that having two drop down calendar controls seem to be the most intuitive and expected interface.

    -tg
    What do you mean by drop down calendar controls?

    Do you just mean 2 of the Month Calendar controls with 2 text boxes?
    Last edited by rlk75; Dec 4th, 2007 at 05:35 PM. Reason: typo

  8. #8
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: [2005] MonthCalendarControl

    I think Techgnome meant using 2 DateTimePicker controls.

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

    Re: [2005] MonthCalendarControl

    Also, with the DateTimePicker control you wont need a textbox anymore.
    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

  10. #10
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: [2005] MonthCalendarControl

    Date Time Pickers.... thems the ones...

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  11. #11

    Thread Starter
    Lively Member rlk75's Avatar
    Join Date
    Oct 2007
    Location
    Pittsburgh, PA
    Posts
    79

    Resolved Re: [2005] MonthCalendarControl

    Wow DateTimePickers are much better. I don't have to worry about displaying the dates in textboxes, and they take up much less space on the form because the calendar isn't always displayed. Plus, it's easier to understand beginning and ending date.

    Thanks a lot for the help!
    Last edited by rlk75; Dec 5th, 2007 at 09:44 AM.

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