Wrox Programmer Forums
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 2nd, 2007, 06:10 AM
Registered User
 
Join Date: Aug 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default VB.Net Month Calendar

I want to create a reminder/note keeping system.

I would like to use the monthcalendar control, whereby the day's saved appointments & such are displayed for the selected day.

What code should I use to get the current selected day into an object variable?

For example, today's month and day is August... 2. Now if I select August 5, I want to grab that date. Help please?

Thanks,
Clyde.
 
Old August 2nd, 2007, 07:56 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

when.. the control will give you the selected value...is that what are you asking???

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
 
Old August 2nd, 2007, 08:01 AM
Registered User
 
Join Date: Aug 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Exactly.

something like...

Variable = monthcalendar1.selecteddate ....

Does that make sense to explain what I want? Thanks :)

 
Old August 2nd, 2007, 08:05 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

really not :(.. if you have the code that will give you the selected day in the calendar control.. what are you looking for.???

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
 
Old August 2nd, 2007, 08:08 AM
Registered User
 
Join Date: Aug 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No, my problem is that I don't have that code!

I want to know how to code the function that puts the date selected by the user into a variable

 
Old August 2nd, 2007, 08:18 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

the user selected a day in a control... a monthcalendar control??
you can use variablename = MonthCalendar1.SelectionStartand will give you the first date selected by the user (in case it can select more than one)...

that is what you need??? that info is in the msdn...



HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
 
Old August 2nd, 2007, 08:21 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Clyde,

Perhaps a look at the documentation will answer your question:

http://msdn2.microsoft.com/en-us/lib...r_members.aspx

-Peter
 
Old August 2nd, 2007, 08:21 AM
Registered User
 
Join Date: Aug 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thats it!!

Thanks a lot :)






Similar Threads
Thread Thread Starter Forum Replies Last Post
month calendar bschleusner C# 2005 0 April 13th, 2007 09:46 PM
calendar month links neddyoats Classic ASP Basics 1 March 5th, 2007 01:35 PM
Calendar) Move to the Selected Date's Month Page AbrarNazeer ASP.NET 2.0 Professional 1 August 15th, 2006 07:36 AM
VB.NET Calendar cyndie VB.NET 1 January 21st, 2005 07:05 AM
Calendar Display Month rodmcleay ASP.NET 1.0 and 1.1 Professional 1 August 9th, 2004 11:40 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.