473,387 Members | 1,892 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,387 software developers and data experts.

How to change the order of an Enum popup?

Hi All,

I have an enumeration type that I use for logging which is:

public enum EnumSeverity
{
Critical=0,
EventLogWrite,
Error,
Warning,
Information,
Entry,
Exit,
Create,
Destroy,
Verbose=9
}

As you can see I use this for logging so Ideally I would like the Enum
popup to come up in the order that it is in the declaration above. Ie.
By assigned numerical value rather than alphabetical value.

Does anyone know of any way I can do this please.

Thanks,
Nov 16 '05 #1
2 1721
The only way I can think of is to force them into alphabetic order:

public enum EnumSeverity
{
L0_Critical=0,
L1_EventLogWrite,
L2_Error,
L3_Warning,
L4_Information,
L5_Entry,
L6_Exit,
L7_Create,
L8_Destroy,
L9_Verbose=9
}
--
Truth,
James Curran
Home: www.noveltheory.com Work: www.njtheater.com
Blog: www.honestillusion.com Day Job: www.partsearch.com
(note new day job!)
"Mike" <Mi**@scrappy.freeserve.co.uk> wrote in message
news:dn********************************@4ax.com...
Hi All,

I have an enumeration type that I use for logging which is:

public enum EnumSeverity
{
Critical=0,
EventLogWrite,
Error,
Warning,
Information,
Entry,
Exit,
Create,
Destroy,
Verbose=9
}

As you can see I use this for logging so Ideally I would like the Enum
popup to come up in the order that it is in the declaration above. Ie.
By assigned numerical value rather than alphabetical value.

Does anyone know of any way I can do this please.

Thanks,

Nov 16 '05 #2
Cheers mate. That will do nicely. :-)

On Thu, 21 Oct 2004 16:42:48 -0400, "James Curran"
<Ja*********@mvps.org> wrote:
The only way I can think of is to force them into alphabetic order:

public enum EnumSeverity
{
L0_Critical=0,
L1_EventLogWrite,
L2_Error,
L3_Warning,
L4_Information,
L5_Entry,
L6_Exit,
L7_Create,
L8_Destroy,
L9_Verbose=9
}


Nov 16 '05 #3

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

Similar topics

2
by: Mark Findlay | last post by:
Is it possible to change a popup window's 'resizable attribute from within the popup window itself? I create the popup window with the window.open(....) function and use a resizable=no...
8
by: Craig Klementowski | last post by:
All, I've installed the VS 2005 Beta 1 and was trying to build our current product. I get a compile error when enum value is specified with classname::enumname::enumvalue. Seems the compiler...
3
by: M | last post by:
I can pass in a string to a Web User Control, but I haven't been successful passing in an enum. I declared my enum as a public variable in my Web User Control itself. Thanks in advance.
3
by: tcloud | last post by:
Is there a rule for the order of methods in the RichTextFind method? Through experimentation I found an order of the methods when doing reverse searches. Specifically, when searching reverse,...
0
by: EricL | last post by:
Hello, I have written a Custom Control which inherits from ToolTip and it is an OwnerDraw tooltip. In the Popup event I calculate the size of the tooltip I need to display (rather large...
1
by: mrmagoo | last post by:
Is it possible to view enum values in the order that I have defined them? Public Enum Size Small Medium Large Biggest End Enum I love Enums because they make my life easier, but, because...
6
by: Index | last post by:
Hi, I have a file which I want to sort depending on multiple columns. Actually I want to implement the following query through programming: SELECT SUM(VALUES) GROUP BY x,y ORDER BY x,y; the...
0
by: zeng.hui.stephen | last post by:
I download the demo http://msdn.microsoft.com/msdnmag/issues/02/10/cuttingedge/. I inherite the demo, and write my code. I want to use Hook to monitor C++ Edit change. I use a C# form...
0
by: shapper | last post by:
Hello, I have an enum as follows: Public Enum Feature Title Content Date Search End
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.