SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Display Integer or Float through textbox.

Last post 07-10-2009 8:42 PM by roy.srijon. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 07-03-2009 9:17 AM

    Display Integer or Float through textbox.

     How can we display float, integer to text box as it only takes string to display. As I am new in C# can any one say me the process to convert all datatype to string so that I may display it to textbox.

  • 07-05-2009 7:51 AM In reply to

    • siegi44
    • Top 25 Contributor
    • Joined on 03-31-2006
    • Steyr, Austria
    • Posts 269
    • Team Members

    Re: Display Integer or Float through textbox.

    Hi,

    the question you are asking is not specific to SharpDevelop. Please take a look at a general C# tutorial.

    How about wikibooks? http://en.wikibooks.org/wiki/C_Sharp_Programming

    regards,

    Siegfried

  • 07-10-2009 12:47 PM In reply to

    Re: Display Integer or Float through textbox.

    I want the exact Process. Can any One tell me about that or write it on the forum.

  • 07-10-2009 6:37 PM In reply to

    Re: Display Integer or Float through textbox.

    Roughly 5 seconds looking at the link Siegi posted yielded an example of what you ought to do:

    For example, since the .NET Framework's System.Int32 type implements a ToString() method to convert the value of an integer to its string representation, C#'s int type exposes that method:

     int i = 97;
    string s = i.ToString();
    // The value of s is now the string "97".


  • 07-10-2009 8:42 PM In reply to

    Re: Display Integer or Float through textbox.

    Thanks for the help.

Page 1 of 1 (5 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.