|
-
Dec 4th, 2007, 04:55 PM
#1
Thread Starter
Lively Member
[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?
-
Dec 4th, 2007, 05:01 PM
#2
Thread Starter
Lively Member
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.
-
Dec 4th, 2007, 05:15 PM
#3
Re: [2005] MonthCalendarControl
add context help to your app.
try this
-
Dec 4th, 2007, 05:18 PM
#4
Frenzied Member
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
-
Dec 4th, 2007, 05:21 PM
#5
Thread Starter
Lively Member
Re: [2005] MonthCalendarControl
 Originally Posted by .paul.
That's a cool idea.
-
Dec 4th, 2007, 05:26 PM
#6
Re: [2005] MonthCalendarControl
Experience has taught us that having two drop down calendar controls seem to be the most intuitive and expected interface.
-tg
-
Dec 4th, 2007, 05:35 PM
#7
Thread Starter
Lively Member
Re: [2005] MonthCalendarControl
 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
-
Dec 4th, 2007, 06:38 PM
#8
Re: [2005] MonthCalendarControl
I think Techgnome meant using 2 DateTimePicker controls.
-
Dec 4th, 2007, 08:48 PM
#9
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
Dec 4th, 2007, 10:51 PM
#10
Re: [2005] MonthCalendarControl
Date Time Pickers.... thems the ones...
-tg
-
Dec 5th, 2007, 09:13 AM
#11
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|