how to set text of button1.text to something

This is a discussion on how to set text of button1.text to something within the C# Programming forums, part of the General Programming Boards category; I would like to change the text in my button1 at a specific time durning my application to something that ...

  1. #1
    Registered User
    Join Date
    Feb 2005
    Posts
    26

    how to set text of button1.text to something

    I would like to change the text in my button1 at a specific time durning my application to something that is stored in an int

    I remember a long time ago, I used something like int32.parse(string)



    can someone please help me on this. I know I cant just go

    int Myint = 15;
    Button1.text = Myint;

    because you cant do that AFAIK.
    Last edited by GUIPenguin; 07-07-2006 at 03:18 PM.

  2. #2
    Anti-Poster
    Join Date
    Feb 2002
    Posts
    1,399
    Myint.ToString()
    If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to use FTP?
    By maxorator in forum C++ Programming
    Replies: 8
    Last Post: 11-04-2005, 03:17 PM
  2. LISP (DrScheme) any one?
    By Jeremy G in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 03-31-2004, 12:52 PM
  3. how to set variable of a text box?
    By Jasonymk in forum C++ Programming
    Replies: 1
    Last Post: 02-05-2003, 11:11 AM
  4. Validating the contents of a char buffer
    By mattz in forum C Programming
    Replies: 3
    Last Post: 12-09-2001, 06:21 PM
  5. Moving to the next structure array
    By mattz in forum C Programming
    Replies: 2
    Last Post: 11-30-2001, 03:43 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21