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

C#

 
AnswerRe: Creating my own design time common tasks editor... Pin
Thomas Stockwell19-Mar-07 8:23
professionalThomas Stockwell19-Mar-07 8:23 
GeneralRe: Creating my own design time common tasks editor... Pin
Shy Agam19-Mar-07 9:27
Shy Agam19-Mar-07 9:27 
QuestionHow change dateTime format!! Pin
darkcalin19-Mar-07 1:44
darkcalin19-Mar-07 1:44 
AnswerRe: How change dateTime format!! Pin
joon vh.19-Mar-07 1:49
joon vh.19-Mar-07 1:49 
GeneralRe: How change dateTime format!! Pin
darkcalin19-Mar-07 1:57
darkcalin19-Mar-07 1:57 
GeneralRe: How change dateTime format!! Pin
joon vh.19-Mar-07 2:08
joon vh.19-Mar-07 2:08 
GeneralRe: How change dateTime format!! Pin
darkcalin19-Mar-07 2:17
darkcalin19-Mar-07 2:17 
GeneralRe: How change dateTime format!! Pin
joon vh.19-Mar-07 2:32
joon vh.19-Mar-07 2:32 
I don't think it's that easy.
What I would do is derive the DateTime class and try to override the Deserialize or ToString() method, because I think that's what WriteXml uses.
I just discovered that deriving DateTime is not possible, as it is sealed.
Try this instead...
<br />
    class MyOwnDateTime <br />
    {<br />
        public int year;<br />
        public int month;<br />
        public int day;<br />
<br />
        public MyOwnDateTime(DateTime date)<br />
        {<br />
            year = date.Year;<br />
            month = date.Month;<br />
            day = date.Day;<br />
        }<br />
<br />
        public override string ToString()<br />
        {<br />
            return year + "-" + month + "-" + day;<br />
        }<br />
    }<br />


By using a custom datatype, you might achieve the results you want.
Hope this helps...



public object BufferOverFlow<br />
        {<br />
__get { return BufferOverFlow; }<br />
__set { BufferOverFlow = value; }<br />
}

QuestionHow can I build a ListBox array? Pin
memix19-Mar-07 0:31
memix19-Mar-07 0:31 
AnswerRe: How can I build a ListBox array? Pin
Andrei Ungureanu19-Mar-07 0:42
Andrei Ungureanu19-Mar-07 0:42 
AnswerRe: How can I build a ListBox array? Pin
Russell Jones19-Mar-07 0:56
Russell Jones19-Mar-07 0:56 
AnswerRe: How can I build a ListBox array? Pin
Pete O'Hanlon19-Mar-07 1:01
mvePete O'Hanlon19-Mar-07 1:01 
GeneralRe: How can I build a ListBox array? Pin
sujithkumarsl19-Mar-07 1:39
sujithkumarsl19-Mar-07 1:39 
GeneralRe: How can I build a ListBox array? Pin
Pete O'Hanlon19-Mar-07 2:18
mvePete O'Hanlon19-Mar-07 2:18 
AnswerRe: How can I build a ListBox array? Pin
memix19-Mar-07 2:09
memix19-Mar-07 2:09 
GeneralRe: How can I build a ListBox array? Pin
Pete O'Hanlon19-Mar-07 2:20
mvePete O'Hanlon19-Mar-07 2:20 
QuestionTreeView Pin
sinosoidal19-Mar-07 0:21
sinosoidal19-Mar-07 0:21 
AnswerRe: TreeView Pin
JoeSharp19-Mar-07 0:32
JoeSharp19-Mar-07 0:32 
GeneralRe: TreeView Pin
sinosoidal19-Mar-07 0:37
sinosoidal19-Mar-07 0:37 
AnswerRe: TreeView Pin
sinosoidal19-Mar-07 0:49
sinosoidal19-Mar-07 0:49 
GeneralRe: TreeView Pin
joon vh.19-Mar-07 1:15
joon vh.19-Mar-07 1:15 
GeneralRe: TreeView Pin
sinosoidal19-Mar-07 5:12
sinosoidal19-Mar-07 5:12 
GeneralRe: TreeView Pin
joon vh.19-Mar-07 5:31
joon vh.19-Mar-07 5:31 
QuestionHow to store sensitive data? Pin
Akiratf19-Mar-07 0:20
Akiratf19-Mar-07 0:20 
AnswerRe: How to store sensitive data? Pin
joon vh.19-Mar-07 1:06
joon vh.19-Mar-07 1:06 

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.