Wrox Programmer Forums
|
VB.NET General VB.NET discussions for issues that don't fall into other VB.NET forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 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 January 19th, 2005, 05:51 AM
Registered User
 
Join Date: Jan 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default VB.NET Calendar

im developing web application using VB.NET..im trying in calendar..but:
How can the calendar be appeared only when i clicked on such as a DatePicker??
N when i try to retrieve the date from database then i wan the calendar to show the particular date??

thanks a lot

cyndie

 
Old January 21st, 2005, 07:05 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

You can show and hide the calendar control with its ".Visible" property. If you use pure postback, you could create a linkbutton (or any command control) as the "pick date" button. The click handler for this control would set the calendar Visible to true. Then when you choose a date, you can hide the calendar.

Take a look at the MSDN docs for this controls members:
http://msdn.microsoft.com/library/en...mberstopic.asp

When you set the selected date for the control, you usually also need to set the "VisibleDate" property otherwise the calendar may not show the SelectedDate (unless it's close enough to the current date which is the calendar default view).

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Calendar like calendar in AJAX in ASP.NET h@ckerz ASP.NET 2.0 Professional 0 February 19th, 2008 12:56 AM
VB 6 Calendar CoolEJ Beginning VB 6 4 October 9th, 2007 02:26 AM
VB.Net Month Calendar ClydeV VB.NET 2002/2003 Basics 7 August 2nd, 2007 08:21 AM
Vb.net Calendar Control KennethMungwira VS.NET 2002/2003 2 January 17th, 2005 01:42 AM
VB.net Calendar KennethMungwira VB.NET 2 November 13th, 2003 11:02 AM





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