Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enum on EventLogEntryType
Message
From
18/08/2010 16:00:01
 
 
To
18/08/2010 13:52:35
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01477075
Message ID:
01477146
Views:
40
>I would like loEvenLog.nType to show me a list of choices so I won't have to remember to enter EvenLogEntryType to get them.

This is the way it works for me, at least in C# it does. Well, by "works for me", what I mean is that as soon as I type "loEventLog.nType = " then Intellisense will automatically show "EventLogEntryType" for me to choose and all I have to do is hit the "." to get the enum values to choose. I'm not sure why VB would be any different, but perhaps it is? Works this way both in VS2010 and VS2008.

~~Bonnie



>>Not clear. What/who is 'the client' ? Where is this being typed?
>
>I have this class:
>
>
>Namespace Framework
>
>    Public Class EventLogManager
>
>        Public cLogName As String = ""
>        Public cMessage As String = ""
>        Public cSource As String = ""
>        Public nEventID As Integer = 0
>        Public nType As EventLogEntryType = EventLogEntryType.Information
>        Private oApp As Framework.App
>        Private oProcess As Framework.LXProcess
>
>
>As you can see, there are some public properties in there. You can also see that nType is defined as EvenLogEntryType. Now, the client, which is the application that is instantiating this class, is defining the properties. So far so good, but when comes time to define the nType property, I would like the intellisense to kick in and show the available choices in EvenLogEntryType. The default here is Information. But, there is also Error and so on. So, when I type this:
>
>
>        Dim loEventLog As Framework.Framework.EventLogManager = New Framework.Framework.EventLogManager(oApp)
>        loEventLog.nType = EventLogEntryType.Information
>
>
>I would like loEvenLog.nType to show me a list of choices so I won't have to remember to enter EvenLogEntryType to get them.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform