Click here to Skip to main content
15,896,063 members
Home / Discussions / C#
   

C#

 
AnswerRe: CSV files in C# Pin
PIEBALDconsult8-Apr-10 3:40
mvePIEBALDconsult8-Apr-10 3:40 
QuestionHow to Find the Control of a window opened in c# Pin
svt gdwl7-Apr-10 18:22
svt gdwl7-Apr-10 18:22 
AnswerRe: How to Find the Control of a window opened in c# Pin
Ravi Bhavnani7-Apr-10 18:51
professionalRavi Bhavnani7-Apr-10 18:51 
QuestionPublic Enum in UserControl is crashing Visual Studio 2008 Pin
Corayzon7-Apr-10 15:08
Corayzon7-Apr-10 15:08 
AnswerRe: Public Enum in UserControl is crashing Visual Studio 2008 Pin
Dan Mos7-Apr-10 15:32
Dan Mos7-Apr-10 15:32 
GeneralRe: Public Enum in UserControl is crashing Visual Studio 2008 Pin
Corayzon7-Apr-10 15:43
Corayzon7-Apr-10 15:43 
GeneralRe: Public Enum in UserControl is crashing Visual Studio 2008 Pin
PIEBALDconsult7-Apr-10 17:21
mvePIEBALDconsult7-Apr-10 17:21 
GeneralRe: Public Enum in UserControl is crashing Visual Studio 2008 Pin
Dan Mos7-Apr-10 18:34
Dan Mos7-Apr-10 18:34 
true. My Bad or my bad expresion.

But it helps. No need to decode and create a human representaion :
// Example of the FlagsAttribute attribute.
using System;

class FlagsAttributeDemo
{
    // Define an Enum without FlagsAttribute.
    enum SingleHue : short
    {
        Black = 0,
        Red = 1,
        Green = 2,
        Blue = 4
    };

    // Define an Enum with FlagsAttribute.
    [FlagsAttribute] 
    enum MultiHue : short
    {
        Black = 0,
        Red = 1,
        Green = 2,
        Blue = 4
    };

    static void Main( )
    {
        Console.WriteLine( 
            "This example of the FlagsAttribute attribute \n" +
            "generates the following output." );
        Console.WriteLine( 
            "\nAll possible combinations of values of an \n" +
            "Enum without FlagsAttribute:\n" );

        // Display all possible combinations of values.
        for( int val = 0; val <= 8; val++ )
            Console.WriteLine( "{0,3} - {1}", 
                val, ( (SingleHue)val ).ToString( ) );

        Console.WriteLine( 
            "\nAll possible combinations of values of an \n" +
            "Enum with FlagsAttribute:\n" );

        // Display all possible combinations of values.
        // Also display an invalid value.
        for( int val = 0; val <= 8; val++ )
            Console.WriteLine( "{0,3} - {1}", 
                val, ( (MultiHue)val ).ToString( ) );
    } 
} 

/*
This example of the FlagsAttribute attribute
generates the following output.

All possible combinations of values of an
Enum without FlagsAttribute:

  0 - Black
  1 - Red
  2 - Green
  3 - 3
  4 - Blue
  5 - 5
  6 - 6
  7 - 7
  8 - 8

All possible combinations of values of an
Enum with FlagsAttribute:

  0 - Black
  1 - Red
  2 - Green
  3 - Red, Green
  4 - Blue
  5 - Red, Blue
  6 - Green, Blue
  7 - Red, Green, Blue
  8 - 8
*/

AnswerRe: Public Enum in UserControl is crashing Visual Studio 2008 Pin
Not Active7-Apr-10 15:32
mentorNot Active7-Apr-10 15:32 
GeneralRe: Public Enum in UserControl is crashing Visual Studio 2008 Pin
Corayzon7-Apr-10 15:47
Corayzon7-Apr-10 15:47 
AnswerRe: Public Enum in UserControl is crashing Visual Studio 2008 Pin
DaveyM697-Apr-10 16:03
professionalDaveyM697-Apr-10 16:03 
GeneralRe: Public Enum in UserControl is crashing Visual Studio 2008 Pin
Corayzon7-Apr-10 16:30
Corayzon7-Apr-10 16:30 
GeneralRe: Public Enum in UserControl is crashing Visual Studio 2008 Pin
DaveyM697-Apr-10 16:34
professionalDaveyM697-Apr-10 16:34 
QuestionMessage Removed Pin
7-Apr-10 15:06
arucied7-Apr-10 15:06 
AnswerRe: How to jion points into a smoothing curve in WPF Pin
AspDotNetDev7-Apr-10 15:55
protectorAspDotNetDev7-Apr-10 15:55 
Questionaccess data base Pin
adrian5647-Apr-10 10:11
adrian5647-Apr-10 10:11 
AnswerRe: access data base Pin
PIEBALDconsult7-Apr-10 10:38
mvePIEBALDconsult7-Apr-10 10:38 
GeneralRe: access data base Pin
adrian5647-Apr-10 11:44
adrian5647-Apr-10 11:44 
GeneralRe: access data base Pin
PIEBALDconsult7-Apr-10 13:25
mvePIEBALDconsult7-Apr-10 13:25 
GeneralRe: access data base Pin
adrian5647-Apr-10 13:37
adrian5647-Apr-10 13:37 
GeneralRe: access data base Pin
PIEBALDconsult7-Apr-10 13:50
mvePIEBALDconsult7-Apr-10 13:50 
GeneralRe: access data base Pin
Not Active7-Apr-10 15:29
mentorNot Active7-Apr-10 15:29 
GeneralRe: access data base Pin
adrian5647-Apr-10 16:23
adrian5647-Apr-10 16:23 
GeneralRe: access data base Pin
PIEBALDconsult7-Apr-10 17:26
mvePIEBALDconsult7-Apr-10 17:26 
GeneralRe: access data base Pin
PIEBALDconsult7-Apr-10 17:23
mvePIEBALDconsult7-Apr-10 17:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.