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 / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

Use event

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
shapper - 10 Sep 2007 18:21 GMT
Hello,

I have 2 classes inside a Namespace: "Calendar" and "Event".

MyNamespace
  | --------- Calendar
          |-------------Event

VS is not accepting the "Event" as a name to the class.

Is there a way to make VS Studio accept this so I can use something
like:

Dim e As New MyNamespace.Calendar.Event

Thanks,
Miguel
Teemu Keiski - 10 Sep 2007 18:29 GMT
Hi,

Event is reserved word in VB.NET. Couldn't you name it something like
CalendarEvent?

Signature

Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net

> Hello,
>
[quoted text clipped - 13 lines]
> Thanks,
> Miguel
shapper - 10 Sep 2007 18:36 GMT
> Hi,
>
[quoted text clipped - 22 lines]
> > Thanks,
> > Miguel

Yes, I can use CalendarEvent ... but I would prefer event so I was
just wondering if this would be possible.

Thanks,
Miguel
Teemu Keiski - 10 Sep 2007 19:05 GMT
Well, it is if you place the name inside Brackets

Public Class [Event]

but that ain't beautiful either

Signature

Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net

>> Hi,
>>
[quoted text clipped - 29 lines]
> Thanks,
> Miguel

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.