Quantcast

Maximum PC

It is currently Wed Aug 20, 2014 7:24 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: beginner question for VB.net and MonthCalendar control
PostPosted: Wed Sep 01, 2004 6:12 pm 
8086
8086

Joined: Mon Aug 16, 2004 6:09 pm
Posts: 10
I'm trying to work out the syntex to select dates from the MonthCalendar control and have the selected dates appear in a ListBox.

Here's the way I'm trying to approach it, the code is in the MonthCalendar class using DateSelected method. The first part seems Ok but their is a squiggely line under the MonthCalendar part.


lstListBox.SelectedItem = mnthMonthCalendar.Select


Top
  Profile  
 
 Post subject: Re: beginner question for VB.net and MonthCalendar control
PostPosted: Wed Sep 01, 2004 8:18 pm 
Bitchin' Fast 3D Z8000
Bitchin' Fast 3D Z8000
User avatar

Joined: Mon Jun 14, 2004 4:04 pm
Posts: 985
Location: Earth
tas205 wrote:
I'm trying to work out the syntex to select dates from the MonthCalendar control and have the selected dates appear in a ListBox.

Here's the way I'm trying to approach it, the code is in the MonthCalendar class using DateSelected method. The first part seems Ok but their is a squiggely line under the MonthCalendar part.


lstListBox.SelectedItem = mnthMonthCalendar.Select



the reason for the squiggly lines is because Select is a method, so it has to be:

mnthMonthCalendar.Select()

Secondly, the Select() method is void, hence it returns no types. Unfortunately DateSelected() is an event, so you have to treat it as an event.


Top
  Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group