Click here to Skip to main content
16,004,778 members
Home / Discussions / C#
   

C#

 
GeneralRe: Change system date style formate through codding Pin
imsathy21-Jan-08 18:30
imsathy21-Jan-08 18:30 
GeneralRe: Change system date style formate through codding Pin
Naveed72721-Jan-08 19:20
Naveed72721-Jan-08 19:20 
GeneralRe: Change system date style formate through codding Pin
DaveyM6921-Jan-08 23:28
professionalDaveyM6921-Jan-08 23:28 
GeneralRe: Change system date style formate through codding Pin
Pete O'Hanlon21-Jan-08 23:54
mvePete O'Hanlon21-Jan-08 23:54 
QuestionRemove Databinding Pin
thachil21-Jan-08 17:52
thachil21-Jan-08 17:52 
GeneralRe: Remove Databinding Pin
SVb.net21-Jan-08 21:35
SVb.net21-Jan-08 21:35 
GeneralRe: Remove Databinding Pin
thachil21-Jan-08 21:51
thachil21-Jan-08 21:51 
GeneralWrong ToString being called Pin
Jordanwb21-Jan-08 13:07
Jordanwb21-Jan-08 13:07 
For my game I created a class called "Integer" to use with by ComboBox. For somereason the ComboBox says "TANK.Integer".

<br />
    class Integer<br />
    {<br />
        public int value;<br />
<br />
        public Integer(int value)<br />
        {<br />
            this.value = value;<br />
        }<br />
<br />
        public int Value<br />
        {<br />
            get<br />
            {<br />
                return this.value;<br />
            }<br />
        }<br />
<br />
        new public string ToString()<br />
        {<br />
            return this.value.ToString();<br />
        }<br />
    }<br />


In the constructor that is used in Application.run I call:

<br />
MessageBox.Show(Game.grid_height_configurations[0].ToString()); <- An array of "Integers"<br />


It says "TANK.Integer" instead of calling Integer's ToString method. It's probably something small.
GeneralRe: Wrong ToString being called Pin
J$21-Jan-08 13:46
J$21-Jan-08 13:46 
GeneralRe: Wrong ToString being called Pin
Jordanwb21-Jan-08 14:42
Jordanwb21-Jan-08 14:42 
GeneralRe: Wrong ToString being called Pin
Luc Pattyn21-Jan-08 14:40
sitebuilderLuc Pattyn21-Jan-08 14:40 
GeneralRe: Wrong ToString being called Pin
Jordanwb21-Jan-08 14:43
Jordanwb21-Jan-08 14:43 
GeneralRe: Wrong ToString being called Pin
Luc Pattyn21-Jan-08 15:43
sitebuilderLuc Pattyn21-Jan-08 15:43 
GeneralProblem with master pages Pin
garrywh21-Jan-08 11:31
garrywh21-Jan-08 11:31 
GeneralI need help with C# loops Pin
Alex50121-Jan-08 10:47
Alex50121-Jan-08 10:47 
GeneralRe: I need help with C# loops Pin
Pete O'Hanlon21-Jan-08 11:16
mvePete O'Hanlon21-Jan-08 11:16 
GeneralRe: I need help with C# loops [modified] Pin
PIEBALDconsult21-Jan-08 11:33
mvePIEBALDconsult21-Jan-08 11:33 
GeneralRe: I need help with C# loops Pin
Colin Angus Mackay21-Jan-08 14:26
Colin Angus Mackay21-Jan-08 14:26 
GeneralRe: I need help with C# loops Pin
PIEBALDconsult21-Jan-08 15:27
mvePIEBALDconsult21-Jan-08 15:27 
GeneralRe: I need help with C# loops Pin
Colin Angus Mackay21-Jan-08 14:40
Colin Angus Mackay21-Jan-08 14:40 
GeneralRe: I need help with C# loops Pin
PIEBALDconsult21-Jan-08 16:11
mvePIEBALDconsult21-Jan-08 16:11 
GeneralRe: I need help with C# loops Pin
Colin Angus Mackay21-Jan-08 21:32
Colin Angus Mackay21-Jan-08 21:32 
GeneralRe: I need help with C# loops Pin
PIEBALDconsult22-Jan-08 5:08
mvePIEBALDconsult22-Jan-08 5:08 
GeneralRe: I need help with C# loops Pin
Guffa21-Jan-08 22:19
Guffa21-Jan-08 22:19 
GeneralRe: I need help with C# loops Pin
PIEBALDconsult22-Jan-08 6:39
mvePIEBALDconsult22-Jan-08 6:39 

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.