Click here to Skip to main content
15,917,709 members
Home / Discussions / C#
   

C#

 
Generalcontext menu with drag/drop and right click Pin
mikelb16-Dec-03 4:37
mikelb16-Dec-03 4:37 
Generalinterfaces and GUIDS Pin
Jinwah16-Dec-03 4:27
Jinwah16-Dec-03 4:27 
GeneralRe: interfaces and GUIDS Pin
Heath Stewart16-Dec-03 5:11
protectorHeath Stewart16-Dec-03 5:11 
GeneralRe: interfaces and GUIDS Pin
Jinwah16-Dec-03 5:34
Jinwah16-Dec-03 5:34 
GeneralRe: interfaces and GUIDS Pin
Heath Stewart16-Dec-03 5:45
protectorHeath Stewart16-Dec-03 5:45 
GeneralRe: interfaces and GUIDS Pin
Jinwah16-Dec-03 22:04
Jinwah16-Dec-03 22:04 
GeneralRe: interfaces and GUIDS Pin
Heath Stewart17-Dec-03 3:13
protectorHeath Stewart17-Dec-03 3:13 
GeneralRe: interfaces and GUIDS Pin
Member 26118817-Dec-03 6:02
Member 26118817-Dec-03 6:02 
Im my opinion, a good example of the uses of attributes is when it comes to describing properties for the property explorer in Visual Studio.net.
using System;
using System.ComponentModel;

namespace Examples
{
    public class ExampleControl : UserControl
    {
        private IndentStyle m_eExampleProperty = IndentStyle.Smart;
        [
        Category("Design"),
        Description("Gets/sets an example value."),
        DefaultValue(IndentStyle.Smart),
        Browsable(true)
        ]
        public IndentStyle ExampleProperty
        {
            get
            {
                return m_eExampleProperty;
            }
            set
            {
                m_eExampleProperty = value;
            }
        }
    }
}

This would produce this kind of output:

If you want to try this out, just cut-and-paste the code into a source file, and create an instance of the control on the designer form.

- Daniël Pelsmaeker
Microsoft is to quality software what McDonalds is to gourmet cooking

GeneralSetting Up Computer to run IIS/ASP.NETwith C# Pin
Larry J. Siddens16-Dec-03 4:22
Larry J. Siddens16-Dec-03 4:22 
GeneralRe: Setting Up Computer to run IIS/ASP.NETwith C# Pin
Heath Stewart16-Dec-03 5:08
protectorHeath Stewart16-Dec-03 5:08 
GeneralRe: Setting Up Computer to run IIS/ASP.NETwith C# Pin
Larry J. Siddens16-Dec-03 7:03
Larry J. Siddens16-Dec-03 7:03 
GeneralRe: Setting Up Computer to run IIS/ASP.NETwith C# Pin
Heath Stewart16-Dec-03 11:06
protectorHeath Stewart16-Dec-03 11:06 
GeneralRe: Setting Up Computer to run IIS/ASP.NETwith C# Pin
Not Active17-Dec-03 3:22
mentorNot Active17-Dec-03 3:22 
Generalproblem with a shared assembly in a VS solution Pin
Tim Kohler16-Dec-03 3:19
Tim Kohler16-Dec-03 3:19 
GeneralRe: problem with a shared assembly in a VS solution Pin
Heath Stewart16-Dec-03 3:45
protectorHeath Stewart16-Dec-03 3:45 
GeneralRe: problem with a shared assembly in a VS solution Pin
Tim Kohler16-Dec-03 4:04
Tim Kohler16-Dec-03 4:04 
GeneralRe: problem with a shared assembly in a VS solution Pin
Heath Stewart16-Dec-03 4:07
protectorHeath Stewart16-Dec-03 4:07 
QuestionDrag Drop - Simple Theory - Simple Solution? Pin
Tristan Rhodes16-Dec-03 2:58
Tristan Rhodes16-Dec-03 2:58 
AnswerRe: Drag Drop - Simple Theory - Simple Solution? Pin
Tristan Rhodes16-Dec-03 3:05
Tristan Rhodes16-Dec-03 3:05 
AnswerRe: Drag Drop - Simple Theory - Simple Solution? Pin
Heath Stewart16-Dec-03 3:42
protectorHeath Stewart16-Dec-03 3:42 
GeneralThe Objective / Solution Pin
16-Dec-03 4:27
suss16-Dec-03 4:27 
GeneralRe: The Objective / Solution Pin
Heath Stewart16-Dec-03 5:04
protectorHeath Stewart16-Dec-03 5:04 
GeneralRe: The Objective / Solution Pin
Tristan Rhodes16-Dec-03 5:27
Tristan Rhodes16-Dec-03 5:27 
GeneralRe: The Objective / Solution Pin
Heath Stewart16-Dec-03 5:29
protectorHeath Stewart16-Dec-03 5:29 
GeneralRe: The Objective / Solution Pin
Tristan Rhodes16-Dec-03 6:16
Tristan Rhodes16-Dec-03 6:16 

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.