Click here to Skip to main content
15,921,577 members
Home / Discussions / C#
   

C#

 
GeneralRe: setting focus on masked textbox control added in datagridview Pin
yogesh_kumar_agarwal7-Apr-10 23:49
yogesh_kumar_agarwal7-Apr-10 23:49 
QuestionWhat OracleType to use for table of record output parameter Pin
whiteadi7-Apr-10 20:51
whiteadi7-Apr-10 20:51 
QuestionMessage Removed Pin
7-Apr-10 20:30
arun_pk7-Apr-10 20:30 
AnswerRe: xml reading Pin
SeMartens7-Apr-10 21:03
SeMartens7-Apr-10 21:03 
GeneralRe: xml reading Pin
arun_pk8-Apr-10 1:36
arun_pk8-Apr-10 1:36 
AnswerRe: xml reading Pin
Mirko19807-Apr-10 23:23
Mirko19807-Apr-10 23:23 
QuestionCSV files in C# Pin
i gr87-Apr-10 20:11
i gr87-Apr-10 20:11 
AnswerRe: CSV files in C# Pin
SeMartens7-Apr-10 21:05
SeMartens7-Apr-10 21:05 
AnswerRe: CSV files in C# Pin
yujianchi7-Apr-10 23:29
yujianchi7-Apr-10 23:29 
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 

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.