Click here to Skip to main content
15,902,938 members
Home / Discussions / C#
   

C#

 
GeneralRe: Extracting a block of text from a line Pin
Muammar©16-Dec-08 21:40
Muammar©16-Dec-08 21:40 
AnswerRe: Extracting a block of text from a line Pin
Chamadness16-Dec-08 20:46
Chamadness16-Dec-08 20:46 
GeneralRe: Extracting a block of text from a line Pin
Muammar©16-Dec-08 22:55
Muammar©16-Dec-08 22:55 
GeneralRe: Extracting a block of text from a line Pin
Christian Graus16-Dec-08 23:09
protectorChristian Graus16-Dec-08 23:09 
GeneralRe: Extracting a block of text from a line Pin
Muammar©16-Dec-08 23:17
Muammar©16-Dec-08 23:17 
GeneralRe: Extracting a block of text from a line Pin
Muammar©16-Dec-08 23:15
Muammar©16-Dec-08 23:15 
GeneralRe: Extracting a block of text from a line Pin
#realJSOP17-Dec-08 0:31
professional#realJSOP17-Dec-08 0:31 
QuestionEnum problem in PropertyGrid Pin
Xmen Real 16-Dec-08 17:56
professional Xmen Real 16-Dec-08 17:56 
i have added an Enum as a property in a class then attach that class to PropertyGrid. It shows a combobox in PG but problem is that whenever i select any item from that combobox, its text keep blank. I used a TypeConverter for that class. Anybody know how to solve this ?


here is code

    class ProperyConverter : TypeConverter
    {
        public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context,
            object value, Attribute[] filter)
        {
            return TypeDescriptor.GetProperties(value, filter);
        }

        public override bool GetPropertiesSupported(ITypeDescriptorContext context)
        {
            return true;
        }
    }

[TypeConverter(typeof(ProperyConverter))]
    class ABC
    {
        object[] data;
        public ABC(object[] data)
        {
            this.data = data;
            
        }
        public override string ToString()
        {
            //return base.ToString();
            return data[0].ToString();
        }
        public MYEnum AAA                        // (Ma)
        {
            get { return (MYEnum)Convert.ToInt32(this.ToString()[0]); }
            set { setValue(0, ((int)value).ToString()); }
        }
    }


TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can

AnswerRe: Enum problem in PropertyGrid Pin
Lev Danielyan16-Dec-08 18:55
Lev Danielyan16-Dec-08 18:55 
GeneralRe: Enum problem in PropertyGrid Pin
Xmen Real 16-Dec-08 18:59
professional Xmen Real 16-Dec-08 18:59 
AnswerRe: Enum problem in PropertyGrid Pin
Lev Danielyan16-Dec-08 19:10
Lev Danielyan16-Dec-08 19:10 
GeneralRe: Enum problem in PropertyGrid Pin
Xmen Real 16-Dec-08 19:19
professional Xmen Real 16-Dec-08 19:19 
GeneralRe: Enum problem in PropertyGrid Pin
Lev Danielyan16-Dec-08 19:57
Lev Danielyan16-Dec-08 19:57 
GeneralRe: Enum problem in PropertyGrid Pin
Xmen Real 16-Dec-08 20:02
professional Xmen Real 16-Dec-08 20:02 
GeneralRe: Enum problem in PropertyGrid Pin
Lev Danielyan16-Dec-08 20:14
Lev Danielyan16-Dec-08 20:14 
GeneralRe: Enum problem in PropertyGrid Pin
Xmen Real 16-Dec-08 20:18
professional Xmen Real 16-Dec-08 20:18 
GeneralRe: Enum problem in PropertyGrid Pin
Xmen Real 16-Dec-08 20:37
professional Xmen Real 16-Dec-08 20:37 
GeneralRe: Enum problem in PropertyGrid Pin
Lev Danielyan16-Dec-08 21:26
Lev Danielyan16-Dec-08 21:26 
GeneralRe: Enum problem in PropertyGrid Pin
Xmen Real 17-Dec-08 1:49
professional Xmen Real 17-Dec-08 1:49 
GeneralRe: Enum problem in PropertyGrid Pin
Lev Danielyan17-Dec-08 2:13
Lev Danielyan17-Dec-08 2:13 
GeneralRe: Enum problem in PropertyGrid Pin
Xmen Real 17-Dec-08 2:16
professional Xmen Real 17-Dec-08 2:16 
GeneralRe: Enum problem in PropertyGrid Pin
Lev Danielyan16-Dec-08 19:59
Lev Danielyan16-Dec-08 19:59 
QuestionProblem using Process.Start("notepad.exe") ... Process (notepad) is launched with no appearance of notepad! Pin
fulbright16-Dec-08 17:17
fulbright16-Dec-08 17:17 
AnswerRe: Problem using Process.Start("notepad.exe") ... Process (notepad) is launched with no appearance of notepad! Pin
Expert Coming16-Dec-08 17:22
Expert Coming16-Dec-08 17:22 
GeneralRe: Problem using Process.Start("notepad.exe") ... Process (notepad) is launched with no appearance of notepad! Pin
fulbright16-Dec-08 17:56
fulbright16-Dec-08 17:56 

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.