Display 12 Months Only In MonthCalendar?
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
ADVERTISEMENT
Jul 17, 2009
How would you display a countdown from 6 Months?
View 14 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
May 23, 2012
With Vb.Net, How to get dates older than 3 months and less than 6 months ?
View 3 Replies
Nov 5, 2009
For example, today is 05/11/2009, I have two text box.
Actually it means that whatever what date i choose within the current month, the two textbox will display the last three months date.
For Example, Current Month is November 2009 , Textbox 1 will show 01/08/2009, Textbox 2 will show 31/10/2009.
Another example is Current Month is January 2009, Textbox 1 will show 01/10/2009, Textbox 2 will show 31/12/2008.
May I know how the vb.net code should look like?
View 6 Replies
Jun 2, 2011
I'm developing a loan mng't system wherein the starting application of the customer say for example today.06/08/2011, the initial payment will be on 08/08/2011.. how am i going to that do on sql server 2005?
View 6 Replies
Jan 27, 2010
First of all i'd like to say thankyou for my last couple of threads as i've found useful ways to make my application great.
Now this is more of an extra credit function more than a necessity.
So for example if the date I currently have is 30/01/2010 how could I make that 30/02/2010? I want the program to add it on for each calandar month, if it's easier for every 4 weeks then that's fine. So is there a way to add to the "Now" function?
View 2 Replies
Jul 13, 2010
I want to get the name of months base on the datediff result. What i've done is that i determine first the number of months in datediff function
Datediff(Months, "13/07/2010", "13/03/2011")
The result of that is 8. Since 8 is the result i want to convert that into months witch supposed to be:
[Code]...
View 3 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
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
Jan 9, 2011
How to calculate the difference in months between two dates in C#? Is there is equivalent of VB's DateDiff() method in C#. I need to find difference in months between two dates that are years apart. The documentation says that I can use TimeSpan like:
[Code]...
but this gives me data in Days. I don't want to divide this number by 30 because not every month is 30 days and since the two operand values are quite apart from each other, I am afraid dividing by 30 might give me a wrong value.
View 8 Replies
Nov 10, 2010
I get a credit loan for 2500 with 10 percent interest rate. I pay $150 a month to pay off the loan. How many months does it take to pay off the loan? I also have to show the new balance at every step Well I know it's 19 months in this case. I tried to do it, but I get many arithmetic overflow errors!![code]
View 4 Replies
Nov 10, 2010
I have the following problem: I get a credit loan for 2500 with 10 percent interest rate. I pay $150 a month to pay off the loan. How many months does it take to pay off the loan? I also have to show the new balance at every step. Well I know it's 19 months in this case. I tried to do it, but I get many arithmetic overflow errors!!
Here is my code so far:
Dim loan As Integer = 2500
Dim intrate As Double = 0.1
Dim payment As Integer = 150
Dim interest As Double
Dim newbalance As Double
[Code] .....
View 4 Replies
Jan 18, 2012
My repeater is searching through dates in the SQL Server database and returning the first 3 letters of every month. Is there a way to show the repeater the way I want to? [code]
View 2 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
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
Jul 14, 2010
I have the following VB.NET Code:
Dim Date1 As New DateTime(2010,5,6)
Dim Date2 As New DateTime(2009,10,12)
Dim NumOfMonths = 0 ' This is where I am stumped
What I am trying to do is find out how many months are between the 2 dates.
View 3 Replies
Feb 2, 2012
I am trying loop though this month until past six months using vb.net and get the the month as integer and year only and pass this to my sql statement. but cannot seem to figure it out..so far i got this :
Dim dtNow As DateTime = DateTime.Now
Dim pastSixMonths As DateTime = dtNow.AddMonths(-6)
For i As Integer = dtNow.Month To pastSixMonths.Month
Next
View 1 Replies
Apr 18, 2011
Example of a function that would return an integer (how many months old) based on a persons age when given the date of birth?
View 1 Replies