Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 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 July 27th, 2006, 02:25 AM
Registered User
 
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default calendar as pop up

i would like to create a calendar in my application which comes as a pop up when i click a botton or a small image of a calendar

 
Old July 27th, 2006, 04:37 PM
Registered User
 
Join Date: Jul 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The easiest way to do this is to add a second form to your project on which you can place the calendar. Create a button on the main form, and in the click event, instantiate an instance of the calendar form, then show it. For example,
1. Add a form 'frmCalendar' to your current project, and place a calendar control on it.
2. Add a button 'Calendar' to your main form.
3. Add a 'click' event to the 'Calendar' button by double clicking on it in design view, then add code to instantiate and show the calendar:
   frmCalendar theCalendar = new frmCalendar();
   theCalendar.Show();

This should give you what you are looking for - good luck.
kw






Similar Threads
Thread Thread Starter Forum Replies Last Post
Calendar pop up window not opening absu ASP.NET 1.0 and 1.1 Basics 1 October 19th, 2008 10:59 AM
Continuos Form and Pop-up calendar scandalous Access 0 February 16th, 2007 11:38 AM
to make calendar as pop up anup.prem C# 0 July 27th, 2006 02:22 AM
RE: Pop up Calendar sherr8 JSP Basics 1 March 1st, 2005 06:52 AM





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