Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / October 2007

Tip: Looking for answers? Try searching our database.

calendar control MonthChangedEventArgs

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rodchar - 31 Oct 2007 17:22 GMT
hey all,
is there a way to convert/cast MonthChangedEventArgs to EventArgs?
thanks,
rodchar
Nicholas Paldino [.NET/C# MVP] - 31 Oct 2007 17:56 GMT
rodchar,

   You don't have to do anything to cast it.  Since MonthChangedEventArgs
derives from EventArgs, you can assign an instance of MonthChangedEventArgs
to an EventArgs variable without a cast.

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

> hey all,
> is there a way to convert/cast MonthChangedEventArgs to EventArgs?
> thanks,
> rodchar
Alex Meleta - 31 Oct 2007 18:11 GMT
Hi Nicholas,

Just to precise: if rodchar said about web MonthChangedEventArgs (http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.monthchangede
ventargs.aspx
)
then it is not derived from EventArgs, or we are talking about something
else? :)

Regards, Alex
[TechBlog] http://devkids.blogspot.com

N> rodchar,
N>
N> You don't have to do anything to cast it.  Since
N> MonthChangedEventArgs derives from EventArgs, you can assign an
N> instance of MonthChangedEventArgs to an EventArgs variable without a
N> cast.
N>
N> "rodchar" <rodchar@discussions.microsoft.com> wrote in message
N> news:73EDC11D-DDF6-4127-AA8F-E30FF16FF663@microsoft.com...
N>
>> hey all,
>> is there a way to convert/cast MonthChangedEventArgs to EventArgs?
>> thanks,
>> rodchar
Nicholas Paldino [.NET/C# MVP] - 31 Oct 2007 19:18 GMT
Unngh, it pains me to see this.  The class should be derived from
EventArgs.  This is obviously an oversight.

   There is a bug listed in the community connect site for this already:

https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID
=98320


   And I've updated the community content section of the documentation to
point to it:

http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.monthchangede
ventargs.aspx


Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

> Hi Nicholas,
>
[quoted text clipped - 18 lines]
>>> thanks,
>>> rodchar
Alex Meleta - 31 Oct 2007 18:04 GMT
Hi rodchar,

But what a reason? EventArgs doesn't have useful information. Using EventArgs.Empty
instead.

Regards, Alex
[TechBlog] http://devkids.blogspot.com

r> hey all,
r> is there a way to convert/cast MonthChangedEventArgs to EventArgs?
r> thanks,
r> rodchar

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.