Use MonthCalendar As DateTimePicker?
Feb 25, 2012
Is it somehow possible to use MonthCalendar as DateTimePicker? Initially current date in Monthcalendar is highlighted, but it is possible with mouseclick to highlight whatewer other date. Does there exist a method or function or something else to retrieve
View 1 Replies
ADVERTISEMENT
Sep 23, 2009
In my application i like to include the Birthday's schedular... i.e if i click/double click the date in DateTimePicker or in MonthCalendar control an inputbox opens in which we have to enter the birthday person's name to the selected date....
View 3 Replies
Jan 26, 2010
I want to enter Year, Month & Date in a separate TextBoxes to get a Function work as these 3 have to be given as parameters for that Function. I've been using 3 different TextBoxes to enter the Year, Month & Date. Now, I thought of using either a DateTimePicker / MonthCalendar for this. how to get it done. By clicking a Date in the DateTimePicker how can I get the Year, Month & Date separately fed into the Function? [Code]
Is there any way of getting the year, month & date separate from the DateTimePicker / MonthCalendar?
View 13 Replies
Jun 2, 2011
I thought I only needed to click or double click a day on this controll to change it. Do I need to create a click event and if so (I have installed MSDN for VS2008) can I see what events are available.
Desmond.
PrivateSub cmdCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdCalculate.Click Dim Days AsInteger Dim Today As DateTime = DateTime.Now
[code].....
View 1 Replies
Jun 8, 2011
Can I add a listbox in monthcalendar?
Listbox contain time..
View 10 Replies
Nov 2, 2009
I saw a Digital Diary and want to create one by myself to learn the techniques. I'm learning Visual Basic (2005). I want your help for the followings; 1) I want to get the "page" (the RichTextBox) linked to the dates in the Monthcalendar ie I wrote something for 20th Oct 2009 and saved, then I select 12th Nov 2009, write & save. I want the page for 20th Oct 2009 opened when I click the 20th Oct 2009 in the Monthcalendar Or page of 12th Nov 2009 opened if I click the 12th Nov 2009 in the MonthCalendar. Can you explain how to do this? Please tell the codes.
2) On starting the program, I want the "Page" for the current Date appears. (and on changing the Date, the "Page" for that particular Date should be opened.) 3) I want to make the User to create a UserName and enter a Password (User selected - can be changed at any time by him) to open the Diary. (Similar to the User account with Password in Windows.)
View 10 Replies
Oct 18, 2003
I try to make some personal diary with VB.Net and i'm using Monthcalendar for the date. but i have no idea what can I do with monthcalendar is it possible for me to attached some data / text (save using .txt file) and highlight/bold the date ? or how to fill monthcalendar array with specific date without using DateTime collection Editor?
View 14 Replies
Oct 13, 2008
I put on the form a tool MonthCalendar and I tried to chang the size ( width-length ) by mouse or from properties but it didn't accepted, it keeps the same size
View 4 Replies
Jun 4, 2009
I am trying to get the date parts selected by a user on the MonthCalendar control. I know how to set the date, thanks to some help from this forum. Now I have run into another problem. I need to be able to take the MONTH, YEAR and DAY selected by the user. I have tried this example I saw, but it does not work, mmDay = CalendarMonth.Tex.ToString("d").
View 1 Replies
Sep 30, 2006
When you open a MonthCalendar control at runtime, and click on the top Month designator, it takes you to a list of all 12 months in order to jump back or forward to a desired month quickly.
My question is, can I restrict the user to only viewing this 12-month calendar at start-up, so that I can just read the Month the user wants to say run a report from.
I realize I could use just a DropDown, or list box with the 12 month names in it, but since the control has this ability to view by month, I figured I would ask.
It would also allow me to reuse a control that I also use to pick a specific date, keeping my code a bit more compact on filesize, and save the control space for a new Combobox or something.
View 1 Replies
Jun 9, 2011
i am having problems getting my calendar to work, passing a start and end date for a rental car and displaying on the form the number of days chosen and the amount for the total. This is the first form problem I have done. I cannot see what I am doing wrong. It does not figure number of days and the amount just stays zero.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
[code].....
View 3 Replies
Feb 25, 2010
I put a monthcalendar in my form and when I select a range of date, the selected area goes white, all the dates in the selected range go white. I have no clue how to fix this.
View 1 Replies
May 9, 2010
I am using the monthcalendar control, i want to change the selected date in the control and i want to the control move to this date
View 7 Replies
May 2, 2011
I would like to be able to either: (1) Pick a date from the Monthcalendar box and have it insert that day into a textbox showing in a format of Day of week, Month/Day/Year or Day of week, mm dd yyyy. or in option #2 be able to enter in the date by mmddyyyy and get Day of week, mm dd yyyy showing in the textbox.
View 1 Replies
Oct 30, 2009
I have a question: How do you set the color of a date in a MonthCalendar? I used this code, but i get errors
ViewStayingPattern.MonthCalendar1.ForeColor.Red(NewDate)
*NewDate is the date I want to be colored.
View 3 Replies
Jun 4, 2009
How does one set the date in MonthCalendar control. I am using VB2005.NET. I am new to this - from VB6.
View 1 Replies
Feb 24, 2010
I have a MonthCalendar control on a panel and it is invisible; when the user clicks on a button I make the panel visible which is fine but the calendar control selected date is highlighted half on one date and half on the other.
Why is this happening? If I simply show the control it does this.
View 2 Replies
Jun 19, 2008
1. How can i show the weeknumber in a label from a selected date in a monthcalendar ??2. How can i show the dates from that whole week in 7 seperate labels ??i'm using vb 2005
View 7 Replies
Jun 30, 2012
I'm trying to bold dates on a monthCalendar control. Here's what I've got, but it's showing an error of "'Add' is not a member of 'System.Array'.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim calendarArray() As DateTime
[Code]....
All I want to do is bold all of the dates on the calendar that there are files for.
View 4 Replies
Mar 8, 2009
I want to update some things on the form when the user clicks a new date (or changes the month, which automatically selects a new date). If I use the DateSelected event, it seems to work as expected when I use the mouse. However if the arrow keys are used, the event does not get triggered. If I use the DateChanged event, it seems to go into an infinite loop. The message box pops up a zillion times when I click the arrow to change the month:
Private Sub MonthCalendar1_DateChanged(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DateRangeEventArgs) Handles MonthCalendar1.DateChanged
MessageBox.Show("DateChanged")[code]....
The only problem with using the DateSelected event is that if the user uses the arrow keys, the event is not fired. I thought I could fix this by disallowing the use of the arrow keys, but I couldn't find anywhere to do that.
View 4 Replies
Sep 18, 2008
is it possible to change the size of the MonthCalendar to say double its standard size and still only display a single month?
When I resize using clientsize, width and height the multiple months are displayed?
View 7 Replies
Oct 28, 2010
I am using a monthcalendar control in my application to allow a user to select a day from the calendar that will load data for that day. the background is totally white (ugh). there is a backcolor property, but when i set it to say Cyan (yea right), the calendar still displays as white. I also can not set Forecolor, TitleBack/Fore color either.
I have gone to my project properties and turned off the "enable xp visual styles", and that had no effect. turned it back on...cant tell a difference. i am currently on windows 7 running VS2008 Team Edition. It would be really nice to change the look of this control to match the styling of my application.
View 1 Replies
Dec 1, 2010
i have a monthcalendar control on a form, and about every minute or so, the click event fires. this is wierd, since i look at the call stack and nothing called it.
View 2 Replies
Mar 22, 2009
I am working on a windows application . I am trying to find if we can resize the monthcalendar control?? if yes, how??
View 8 Replies
Apr 19, 2010
I am using MonthCalender control in vb.net to select a date. I am able to save the selected date to DB and also retrieve and bold the previous selected date. But even though date is bolded it is not displayed when the form loads. It still highlights today's date. What Do i do to highlight the previous chosen dates. Also i want to disable choosing date range.
[Code]...
View 1 Replies
Oct 13, 2011
My table looks like: Id | _date | about The "_date" is formatted like: 2011, 10, 17 and the "about" is simply text.[code]...
1) I keep getting the error that my command is incorrect. I don't see what's wrong with it.
2) how do I fill the monthcalendar with the dates? (row _date)
View 5 Replies
Mar 15, 2009
I have a monthcalendar control which display 3 months at a single time. Now I want the first of the 3 displayed months to be the current month (running my app. the 3 month will be this month).
View 13 Replies
Jun 29, 2009
I made a small program that's a calendar that allows you to add notes to selected days. Then when you click on the days again it retrieves and displays the notes or allows you to edit and so forth. It works through an MS Access db. I want the days that have notes to be highlighted or bold. I know this bit of code works, for bold :
[Code]...
View 12 Replies
Apr 6, 2011
I would like to display week numbers in the MonthCalendar but the weeks numbers are not correct. ISO 8601 defines the Week as always starting with Monday and the first week is the week which contains the first Thursday of the calendar year. The MonthCalendar control does not follow this but starts week #1 on the week that Jan. 1st appears.Is there a way to set the first day of the year (like you can with the first day of the week)? I am using VS2008.
View 7 Replies
Oct 29, 2010
I've hardcoded my date into my app, but now I want to read it from the database. I knowhow to read the columns, but unfortunately I don't now how to make the date appear into the monthcalendar.[code]...
View 16 Replies