473,396 Members | 1,599 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Use event

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

Sep 10 '07 #1
3 1174
Hi,

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

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net
"shapper" <md*****@gmail.comwrote in message
news:11*********************@w3g2000hsg.googlegrou ps.com...
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

Sep 10 '07 #2
On Sep 10, 6:29 pm, "Teemu Keiski" <jot...@aspalliance.comwrote:
Hi,

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

--
Teemu Keiski
AspInsider, ASP.NET MVPhttp://blogs.aspadvice.com/jotekehttp://teemukeiski.net

"shapper" <mdmo...@gmail.comwrote in message

news:11*********************@w3g2000hsg.googlegrou ps.com...
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
Yes, I can use CalendarEvent ... but I would prefer event so I was
just wondering if this would be possible.

Thanks,
Miguel

Sep 10 '07 #3
Well, it is if you place the name inside Brackets

Public Class [Event]

but that ain't beautiful either
--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net
"shapper" <md*****@gmail.comwrote in message
news:11**********************@y42g2000hsy.googlegr oups.com...
On Sep 10, 6:29 pm, "Teemu Keiski" <jot...@aspalliance.comwrote:
>Hi,

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

--
Teemu Keiski
AspInsider, ASP.NET
MVPhttp://blogs.aspadvice.com/jotekehttp://teemukeiski.net

"shapper" <mdmo...@gmail.comwrote in message

news:11*********************@w3g2000hsg.googlegro ups.com...
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

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

Thanks,
Miguel

Sep 10 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Andy Read | last post by:
Hello all, I have the requirement to produce source code that produces an object hierarchy. Example: Root | Folder 1
18
by: Christopher W. Douglas | last post by:
I am writing a VB.NET application in Visual Studio 2003. I have written a method that handles several events, such as closing a form and changing the visible status of a form. I have some code...
8
by: Mark | last post by:
Hi, I'm looking for some ideas on how to build a very simple Event processing framework in my C++ app. Here is a quick background ... I'm building a multithreaded app in C++ (on Linux) that...
9
by: VK | last post by:
My original idea of two trains, however pictural it was, appeared to be wrong. The truth seems to be even more chaotic. IE implements its standard down-up model: any mouse event goes from the...
13
by: Charles Law | last post by:
Mr "yEaH rIgHt" posted the following link about a week ago in answer to my question about removing event handlers. > http://www.vbinfozine.com/t_bindevt.shtml Following on from that post, the...
12
by: Jack Russell | last post by:
My unstanding of all VB up to and including vb6 is that an event could not "interrupt" itself. For instance if you had a timer event containing a msgbox then you would only get one message. ...
41
by: JohnR | last post by:
In it's simplest form, assume that I have created a usercontrol, WSToolBarButton that contains a button. I would like to eventually create copies of WSToolBarButton dynamically at run time based...
9
by: jeff | last post by:
New VB user...developer... Situation...simplified... - I want to wrap a pre and post event around a system generated where the pre-event will always execute before the system event and the...
19
by: Daniela Roman | last post by:
Hello, I try to fire an event under a button click event and maybe anybody can give a clue please. I have let's say a WEB grid with PageIndexChanged event: private void...
5
by: jaysonnward | last post by:
Hello All: I've recently been recreating some 'dropdown menus' for a website I manage. I'm writing all my event handlers into my .js file. I've got the coding to work in Firefox, but the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.