473,378 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

vb.net and month calendar

129 100+
Hai guys !! help me

if any code/ property support to a month calendar for enlarging it's size.

i want to show pictures in a picture box when changing the month from the calendar control. Can I ?

plz provide an idea or code for this project //


Thanx in advance!!!
Feb 8 '07 #1
6 5010
kenobewan
4,871 Expert 4TB
Use a stylesheet to control the look and size of the calendar. You would need to return the month and load an image depending on which month it was...

Hope that this helps.
Feb 9 '07 #2
guajaj
3
**Sorry I'm new to the Forum, If this is in the wrong place***

I'm trying to use the MonthCalendar tool from the Common Controls Toolbox in Visual Studio. What is the code to use the date selected? I've searched, and all I can find is .TodayDate which is the actual current date or .SelectedRange which can't be converted into an integer. The toolbox says that it 'Displays a monthly calendar from which the user can select a date.' but how does the selected date get stored/used?
Mar 5 '07 #3
guajaj
3
Of course as soon as I post something I find the answer to my own question. For anyones future reference I used:

Nights = System.DateTime.Compare(EndMonthCalendar.Selection Start.Date, BegMonthCalendar.SelectionStart.Date)

With Nights being a integer I used for future calculations, and EndMonthCalendar and BegMonthCalendar being my Month Calendar Objects.
Mar 5 '07 #4
kenobewan
4,871 Expert 4TB
Had the same experience before. Thanks for sharing the solution :).
Mar 6 '07 #5
jrjan1
7
Of course as soon as I post something I find the answer to my own question. For anyones future reference I used:

Nights = System.DateTime.Compare(EndMonthCalendar.Selection Start.Date, BegMonthCalendar.SelectionStart.Date)

With Nights being a integer I used for future calculations, and EndMonthCalendar and BegMonthCalendar being my Month Calendar Objects.

Do you have to use two calendars? Is there a way to only use 1?
Mar 15 '07 #6
If you are trying to just get the date that is selected you can always use the monthCalendar.SelectionStart it returns the DateTime of the selected date.
Mar 15 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

20
by: Laguna | last post by:
Hi Gurus, I want to find the expiration date of stock options (3rd Friday of the month) for an any give month and year. I have tried a few tricks with the functions provided by the built-in...
2
by: bb | last post by:
any way to prevent displaying the previous and next months in the calendar control? i have tried just blanking the text out in the dayrender IsOtherMonth and also dynamically changing the...
34
by: prosoft | last post by:
When I use Dim myDTFI As DateTimeFormatInfo = New CultureInfo("he-IL", True).DateTimeFormat Dim strhmon1 As String = (myDTFI.GetMonthName(hmon1)) MsgBox(strhmon1) I get the local name of the...
4
by: Jason Chan | last post by:
How can I get the month and year a calendar control current displaying? My problem is I want to load a list of event to a calendar so that it display difference style if there a event for a day....
10
by: Bill | last post by:
Hello -- I'm parsing the output of the finger command, and was wondering something...If I'm given a month abbrievation (such as "Jan"), what's the best way to figure out the month number? I see...
0
by: larry | last post by:
I am in the process of rewriting one of my first PHP scripts, an event calendar, and wanted to share the code that is the core of the new calendar. My current/previous calendar processed data...
5
by: tolcis | last post by:
Hi! I have a query that has to return bunch of data based on the calendar month. I have to make sure that it will return data to me for 28 days if it is February and for 31 if it is August(for...
6
by: Zeba | last post by:
Hi, I have a page with a calendar and two datalist items - one containing month values and the other, year values. Depending on the month/year value chosen ( in text/string format ) I should be...
7
by: ajaydesai | last post by:
I have JavaScript code to dispaly two month calendar days at a time, but i have a problem both month that disaplay at a time have same days (for example May and June has same days, June and July have...
5
by: =?Utf-8?B?bWFib25k?= | last post by:
Hi Using a month calendar control so that my user can select a start and end date for a range that will be used in a SQL query. Problem.....if user selects a date in one month and then scrolls...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.