MonthCalendar Need Dates To Be Highlighted Or Bolded
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
ADVERTISEMENT
Feb 19, 2010
Can I change a bolded date's color of a MonthCalendar control without creating a new custom control? Should I override OnPaint event, or something for this? If so, how?
View 5 Replies
May 18, 2010
I am using VS 2010 and am hoping this had been fixed. But I wanted to bold holdiday's in my calendar.... problem is.. it is not taking...
If My.Settings.OtherHolidays = True Then
GetOtherHolidays(Me.MonthCalendar1.SelectionStart.Date)
For index As Integer = 0 To arrOHDays.Count - 1 'UBound(arrOHDays)
[code].....
View 1 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
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
Feb 19, 2011
How can I change the color of certain dates in the MonthCalendar control in VB.NET? For example, I need to change the color of Jan 21 to Red, Sundays to Orange and so on...
View 3 Replies
Apr 28, 2009
I'm Using MonthCalendar Control in my Form to select Multiple Dates. (for eg. 1st April,20th April,25th April). I'm planning to Change the date the user clicked by making it BOLD during run time, so that i can retrieve the results in a Date array. [code] MessageBox clearly shows the date selected, but no effect for the "addboldeddate'.
View 3 Replies
Mar 28, 2011
I have an application that uses a treeview and a checkedlistbox to allow a user to navigate and enable/disable printers on their computer. Everything works great.One of the program requirements is that the user interface must visually indicate which printer is the users default. The obvious best way to do this is by changing the font of the item in the listbox that matches the users default printer. From my research, it seems that I will have to subclass the checklistbox and add the drawmode property to the new control. I've got no idea how to do this with a checkbox and make it actually work!
View 7 Replies
Aug 13, 2009
Private Sub CMDreturngame_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CMDreturngame.Click
Dim gameID As Integer
[CODE]...
The above is my code. I'm trying to get it to step into the bolded code when I click on no in the messagebox, but it keeps skipping. No idea why as I've wrote another piece of code with similar coding, which works perfectly fine.
View 2 Replies
Feb 20, 2010
I have two dates. [code] How to print all dates between these two dates in one listbox, for example: [code]
View 8 Replies
Jan 12, 2011
Say the user specifies these two dates....
Start Date: 2010-12-05
End Date: 2011-01-15
If I select December 2010 I should get the folllowing
startdate = 2010-12-05
enddate = 2010-12-31
Select January 2011 then
startdate = 2011-01-01
enddate = 2011-01-15
Should I subtract dates? How can I get the start and enddate for the current month/year based on the overall start and end date.I'm coding in vb.net.
View 1 Replies
Oct 2, 2009
I'm using two datetimepicker controls to set the start and end dates for a range of dates I'm searching for.I want to make sure that the start date selected is not greater than the end date. This code works, but it runs the messagebox prompt twice for some reason. I've tried to ignore it from doing this, but it's not working. Can someone tell me what's wrong?
Private Sub dtpStart_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles dtpStart.ValueChanged
[Code]...
View 2 Replies
Dec 15, 2009
I have one more problem with MonthControl.And when I bold some dates the program doesn't show bold dates on month calendar.When I move on next or previous month and get back to currently month the program normal displays bold dates. What's the problem?
View 22 Replies
Nov 13, 2009
I saw that there is an AnnualBolded and a MonthlyBolded. How can I create a "weekly bolded"? Let's say that I want every thursday and/or friday bolded.
View 15 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
Sep 9, 2009
I have lines like this
GND P3559 9812, 7993 p9910.26;
GND P3559 9812, 7993 p9910.26;
46N93 P594 40898, 35899 39MIL;
PHY2_P2_CONFIG0 P2767 34205, 33537 39MIL;
I want to get only the value that i highlighted.
I split the line like this
Dim tfLines() As String = System.IO.File.ReadAllLines("C:file.txt")
Dim sf As New System.IO.StreamWriter(drill, True)
For I As Integer = 0 To tfLines.Length - 1
[Code]...
if i use this code it shows me error "Index was outside the bounds of the array." I dont know why im getting this error.
View 3 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